InstanceKey Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents an instance key and contains an identifier and metadata associated with the instance key. An instance key acts as a non-unique alias for an instance.
public ref class InstanceKey
public class InstanceKey
[System.Runtime.Serialization.DataContract]
public class InstanceKey
type InstanceKey = class
[<System.Runtime.Serialization.DataContract>]
type InstanceKey = class
Public Class InstanceKey
- Inheritance
-
InstanceKey
- Derived
- Attributes
Constructors
InstanceKey(Guid, IDictionary<XName,InstanceValue>) |
Initializes an instance of the InstanceKey class using the GUID and metadata associated with the instance key. |
InstanceKey(Guid) |
Initializes an instance of the InstanceKey class using the GUID associated with the instance key passed. |
Properties
InvalidKey |
Returns an invalid InstanceKey object. An invalid InstanceKey object has Guid.Empty value for the Value property and a |
IsValid |
Gets a value that indicates whether the instance key is valid. |
Metadata |
Gets the dictionary that contains metadata associated with the instance key. |
Value |
Gets the GUID value associated with the current instance key. |
Methods
Equals(Object) |
Compares the GUID associated with the current object (stored in the Value property) with the GUID associated with the InstanceKey object. |
GetHashCode() |
Returns a unique hash code for the current InstanceKey object's GUID (stored in the Value property). |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |