Policy.Key Class

The Policy.Key class represents the key that identifies each instance of the Policy class.

System.Object
  Microsoft.SqlServer.Management.Sdk.Sfc.SfcKey
    Microsoft.SqlServer.Management.Dmf.Policy.Key

Namespace:  Microsoft.SqlServer.Management.Dmf
Assembly:  Microsoft.SqlServer.Dmf (in Microsoft.SqlServer.Dmf.dll)

[StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand, PublicKey = "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")]
public sealed class Key : SfcKey

The Policy.Key type exposes the following members.

  NameDescription
Public methodPolicy.Key()Initializes a new instance of the Policy.Key class.
Public methodPolicy.Key(String)Initializes a new instance of the Policy.Key class that has the specified name.
Public methodPolicy.Key(Policy.Key)Initializes a new instance of the Policy.Key class based on the specified key.
Top

  NameDescription
Public propertyNameGets a String value that specifies the name of the policy identified by the current Policy.Key.
Top

  NameDescription
Public methodEquals(Object)Determines if the specified object is the same as the policy identified by the current Policy.Key object. (Overrides SfcKey.Equals(Object).)
Public methodEquals(SfcKey)Determines if the specified object is the same as the policy identified by the current Policy.Key object. (Overrides SfcKey.Equals(SfcKey).)
Public methodStatic memberEquals(Object, Object)Determines whether two objects are equal.
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCodeGets the hash code for the object. (Overrides SfcKey.GetHashCode().)
Public methodGetType (Inherited from Object.)
Public methodGetUrnFragmentGets the unique resource name (URN) path partial string that represents the policy. (Overrides SfcKey.GetUrnFragment().)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToStringDo not reference this member directly in your code. It supports the SQL Server infrastructure. Returns a String value that is a sortable representation of the object that can be used in external comparers. (Inherited from SfcKey.)
Top

  NameDescription
Public operatorStatic memberEquality(Object, Policy.Key)Determines whether the object identified by a Object is the same as the object identified by a Policy.Key.
Public operatorStatic memberEquality(Policy.Key, Policy.Key)Determines whether the objects identified by two Policy.Key objects are the same.
Public operatorStatic memberEquality(Policy.Key, Object)Determines whether the object identified by a Object is the same as the object identified by a Policy.Key.
Public operatorStatic memberInequality(Object, Policy.Key)Determines whether the object identified by a Object is different than the object identified by a Policy.Key.
Public operatorStatic memberInequality(Policy.Key, Policy.Key)Determines whether the objects identified by two Policy.Key objects are the same.
Public operatorStatic memberInequality(Policy.Key, Object)Determines whether the object identified by a Object is different than the object identified by a Policy.Key.
Top

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show: