Partager via


Classe Property

The Property object provides programmatic access to the properties of all the SMO objects.

Hiérarchie d'héritage

System.Object
  Microsoft.SqlServer.Management.Smo.Property
    Microsoft.SqlServer.Management.Smo.Wmi.ProtocolProperty

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public Class Property _
    Implements ISfcProperty
'Utilisation
Dim instance As [Property]
public class Property : ISfcProperty
public ref class Property : ISfcProperty
type Property =  
    class 
        interface ISfcProperty 
    end
public class Property implements ISfcProperty

Le type Property expose les membres suivants.

Propriétés

  Nom Description
Propriété publique Dirty Gets the Boolean property value that specifies whether the property correctly reflects the current value of the entity that it represents on the instance of SQL Server.
Propriété publique Expensive Gets the Boolean property value that specifies whether it takes a long time to load the property's values.
Propriété publique IsNull Gets the Boolean property value that specifies whether the property is set to null.
Propriété publique Name Gets the name of the property.
Propriété publique Readable Gets the Boolean property value that specifies whether the value of the property can be retrieved.
Propriété publique Retrieved Gets the Boolean property value that specifies whether the property has been retrieved already.
Propriété publique Type Gets the type of property.
Propriété publique Value Gets or sets the value of the property.
Propriété publique Writable Gets the Boolean property value that specifies whether the property can be modified.

Haut de la page

Méthodes

  Nom Description
Méthode publique CompareTo Compares the Property object to another object.
Méthode publique Equals Determines whether two Property objects are equal. (remplace Object.Equals(Object).)
Méthode protégée Finalize (hérité de Object.)
Méthode publique GetHashCode Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. (remplace Object.GetHashCode().)
Méthode publique GetType (hérité de Object.)
Méthode protégée MemberwiseClone (hérité de Object.)
Méthode publique ToString Returns a String value that represents the current object. (remplace Object.ToString().)

Haut de la page

Opérateurs

  Nom Description
Opérateur publicMembre statique Equality Determines whether two objects are equal by performing an equality operation on two Property objects.
Opérateur publicMembre statique GreaterThan Determines whether one object is greater than another object by performing an greater than operation on two Property objects.
Opérateur publicMembre statique Inequality Determines whether two objects are unequal by performing an inequality operation on two Property objects.
Opérateur publicMembre statique LessThan Determines whether one object is less than another object by performing an less than operation on two Property objects.

Haut de la page

Implémentations d'interfaces explicites

  Nom Description
Implémentation d'interface explicitePropriété privée ISfcProperty.Attributes Returns an attribute collection that contains properties.
Implémentation d'interface explicitePropriété privée ISfcProperty.Dirty Gets the Boolean property value that specifies whether the property correctly reflects the current value of the entity that it represents on the instance of SQL Server.
Implémentation d'interface explicitePropriété privée ISfcProperty.Enabled Gets the Boolean property value that specifies whether the property is enabled on the entity that it represents on the instance of SQL Server.
Implémentation d'interface explicitePropriété privée ISfcProperty.IsNull Gets the Boolean property value that specifies whether the property is set to null.
Implémentation d'interface explicitePropriété privée ISfcProperty.Name Gets the name of the property.
Implémentation d'interface explicitePropriété privée ISfcProperty.Required Gets the Boolean property value that specifies whether the property is required,.
Implémentation d'interface explicitePropriété privée ISfcProperty.Type Gets the type of property.
Implémentation d'interface explicitePropriété privée ISfcProperty.Value Gets or sets the value of the property.
Implémentation d'interface explicitePropriété privée ISfcProperty.Writable Gets the Boolean property value that specifies whether the property can be modified.

Haut de la page

Notes

Thread Safety

Tout membre statique public (Partagé dans Microsoft Visual Basic) de ce type est sûr dans le cadre des opérations à plusieurs threads. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

Exemples

Définition de propriétés

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

Voir aussi

Référence

Espace de noms Microsoft.SqlServer.Management.Smo