Classe NamedKey<T>
Represents the single string name key for an instance class.
Hierarquia de herança
System.Object
Microsoft.SqlServer.Management.Sdk.Sfc.SfcKey
Microsoft.SqlServer.Management.Sdk.Sfc.NamedKey<T>
Namespace: Microsoft.SqlServer.Management.Sdk.Sfc
Assembly: Microsoft.SqlServer.Management.Sdk.Sfc (em Microsoft.SqlServer.Management.Sdk.Sfc.dll)
Sintaxe
'Declaração
Public Class NamedKey(Of T As SfcInstance) _
Inherits SfcKey _
Implements IEquatable(Of NamedKey(Of T))
'Uso
Dim instance As NamedKey(Of T)
public class NamedKey<T> : SfcKey, IEquatable<NamedKey<T>>
where T : SfcInstance
generic<typename T>
where T : SfcInstance
public ref class NamedKey : public SfcKey,
IEquatable<NamedKey<T>^>
type NamedKey<'T when 'T : SfcInstance> =
class
inherit SfcKey
interface IEquatable<NamedKey<'T>>
end
JScript não dá suporte a tipos e métodos genéricos.
Parâmetros de tipo
- T
The type of the name key for an instance.
O tipo NamedKey<T> expõe os membros a seguir.
Construtores
Nome | Descrição | |
---|---|---|
NamedKey<T>() | Initializes a new instance of the NamedKey<T> class. | |
NamedKey<T>(IDictionary<String, Object>) | Initializes a new instance of the NamedKey<T> class from a field dictionary. | |
NamedKey<T>(String) | Initializes a new instance of the NamedKey<T> class from a string. | |
NamedKey<T>(NamedKey<T>) | Initializes a new instance of the NamedKey<T> class from another name key. |
Início
Propriedades
Nome | Descrição | |
---|---|---|
InstanceType | Gets the instance type which the key represents. (Substitui SfcKey.InstanceType.) | |
Name | Gets the name key value. | |
UrnName | Gets the Urn level name corresponding to the instance type which the key represents. |
Início
Métodos
Nome | Descrição | |
---|---|---|
Equals(Object) | Compares a name key to the specified key for value of equality. (Substitui SfcKey.Equals(Object).) | |
Equals(NamedKey<T>) | Compares a name key to the specified key for value of equality. | |
Equals(SfcKey) | Compares a name key to the key for value of equality. (Substitui SfcKey.Equals(SfcKey).) | |
Equals(Object, Object) | Compares the two keys for value of equality. | |
Finalize | (Herdado de Object.) | |
GetHashCode | Returns a hash code for the key. (Substitui SfcKey.GetHashCode().) | |
GetType | (Herdado de Object.) | |
GetUrnFragment | Returns the Urn level fragment which obtains its name from the key name property by default. (Substitui SfcKey.GetUrnFragment().) | |
MemberwiseClone | (Herdado de Object.) | |
ToString | Returns the string value for the key. (Substitui SfcKey.ToString().) |
Início
Operadores
Nome | Descrição | |
---|---|---|
Equality | Indicates whether the two keys are equal. | |
Inequality | Indicates whether the two keys are not equal. |
Início
Segurança de thread
Qualquer membro público static (Shared no Visual Basic) desse tipo é seguro para threads. Não há garantia de que qualquer membro de instância seja seguro para threads.