Delen via


Property Class

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

Inheritance Hierarchy

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

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

Syntax

'Declaration
Public Class Property _
    Implements ISfcProperty
'Usage
Dim instance As [Property]
public class Property : ISfcProperty
public ref class Property : ISfcProperty
type Property =  
    class 
        interface ISfcProperty 
    end
public class Property implements ISfcProperty

The Property type exposes the following members.

Properties

  Name Description
Public property 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.
Public property Expensive Gets the Boolean property value that specifies whether it takes a long time to load the property's values.
Public property IsNull Gets the Boolean property value that specifies whether the property is set to null.
Public property Name Gets the name of the property.
Public property Readable Gets the Boolean property value that specifies whether the value of the property can be retrieved.
Public property Retrieved Gets the Boolean property value that specifies whether the property has been retrieved already.
Public property Type Gets the type of property.
Public property Value Gets or sets the value of the property.
Public property Writable Gets the Boolean property value that specifies whether the property can be modified.

Top

Methods

  Name Description
Public method CompareTo Compares the Property object to another object.
Public method Equals Determines whether two Property objects are equal. (Overrides Object.Equals(Object).)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. (Overrides Object.GetHashCode().)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString Returns a String value that represents the current object. (Overrides Object.ToString().)

Top

Operators

  Name Description
Public operatorStatic member Equality Determines whether two objects are equal by performing an equality operation on two Property objects.
Public operatorStatic member GreaterThan Determines whether one object is greater than another object by performing an greater than operation on two Property objects.
Public operatorStatic member Inequality Determines whether two objects are unequal by performing an inequality operation on two Property objects.
Public operatorStatic member LessThan Determines whether one object is less than another object by performing an less than operation on two Property objects.

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate property ISfcProperty.Attributes Returns an attribute collection that contains properties.
Explicit interface implemetationPrivate property 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.
Explicit interface implemetationPrivate property 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.
Explicit interface implemetationPrivate property ISfcProperty.IsNull Gets the Boolean property value that specifies whether the property is set to null.
Explicit interface implemetationPrivate property ISfcProperty.Name Gets the name of the property.
Explicit interface implemetationPrivate property ISfcProperty.Required Gets the Boolean property value that specifies whether the property is required,.
Explicit interface implemetationPrivate property ISfcProperty.Type Gets the type of property.
Explicit interface implemetationPrivate property ISfcProperty.Value Gets or sets the value of the property.
Explicit interface implemetationPrivate property ISfcProperty.Writable Gets the Boolean property value that specifies whether the property can be modified.

Top

Remarks

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.

Examples

Setting Properties

Thread Safety

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

See Also

Reference

Microsoft.SqlServer.Management.Smo Namespace