Class UnparsedResourceName
A resource name in which nothing is known about the name structure.
Inheritance
System.Object
UnparsedResourceName
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 UnparsedResourceName : IResourceName, IEquatable<UnparsedResourceName>
Constructors
UnparsedResourceName(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 UnparsedResourceName(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Properties
IsKnownPattern
Whether this instance contains a resource name with a known pattern.
Declaration
public bool IsKnownPattern { get; }
Property Value
Type |
Description |
System.Boolean |
|
Implements
Methods
Equals(UnparsedResourceName)
Declaration
public bool Equals(UnparsedResourceName 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 UnparsedResourceName.
Only minimal verification is carried out that name
is a valid resource name string.
Declaration
public static UnparsedResourceName 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 UnparsedResourceName)
Tries to parse the given resource name into an UnparsedResourceName.
Only minimal verification is carried out that name
is a value resource name string.
Declaration
public static bool TryParse(string name, out UnparsedResourceName result)
Parameters
Returns
Type |
Description |
System.Boolean |
true if name was successfully parsed, otherwise false .
|
Operators
Equality(UnparsedResourceName, UnparsedResourceName)
Declaration
public static bool operator ==(UnparsedResourceName a, UnparsedResourceName b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Inequality(UnparsedResourceName, UnparsedResourceName)
Declaration
public static bool operator !=(UnparsedResourceName a, UnparsedResourceName b)
Parameters
Returns
Type |
Description |
System.Boolean |
|