Class UnknownResourceName
A resource name in which nothing is known about the name structure.
Inheritance
System.Object
UnknownResourceName
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Google.Api.Gax.dll
Syntax
public sealed class UnknownResourceName : IResourceName, IEquatable<UnknownResourceName>
Constructors
UnknownResourceName(String)
Creates an unkown resource name from the given resource name string.
Only minimal verification is carried out that name
is a value resource name string.
Declaration
public UnknownResourceName(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Properties
Kind
The kind of resource name.
Declaration
public ResourceNameKind Kind { get; }
Property Value
Implements
Methods
Equals(UnknownResourceName)
Declaration
public bool Equals(UnknownResourceName other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IEquatable<T>.Equals(T)
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
Parse(String)
Parse a resource name into an UnknownResourceName.
Only minimal verification is carried out that name
is a value resource name string.
Declaration
public static UnknownResourceName Parse(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
A resource name.
|
Returns
Exceptions
Type |
Condition |
System.ArgumentNullException |
name is null .
|
System.ArgumentException |
name is an invalid resource name.
|
ToString()
The string representation of the resource name.
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
The string representation of the resource name.
|
Overrides
System.Object.ToString()
Implements
TryParse(String, out UnknownResourceName)
Tries to parse the given resource name into an UnknownResourceName.
Only minimal verification is carried out that name
is a value resource name string.
Declaration
public static bool TryParse(string name, out UnknownResourceName result)
Parameters
Returns
Type |
Description |
System.Boolean |
true if name was successfully parsed, otherwise false .
|
Operators
Equality(UnknownResourceName, UnknownResourceName)
Declaration
public static bool operator ==(UnknownResourceName a, UnknownResourceName b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Inequality(UnknownResourceName, UnknownResourceName)
Declaration
public static bool operator !=(UnknownResourceName a, UnknownResourceName b)
Parameters
Returns
Type |
Description |
System.Boolean |
|