共用方式為


Property 類別

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

繼承階層

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

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Class Property _
    Implements ISfcProperty
'用途
Dim instance As [Property]
public class Property : ISfcProperty
public ref class Property : ISfcProperty
type Property =  
    class 
        interface ISfcProperty 
    end
public class Property implements ISfcProperty

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

上層

方法

  名稱 說明
公用方法 CompareTo Compares the Property object to another object.
公用方法 Equals Determines whether two Property objects are equal. (覆寫 Object.Equals(Object)。)
受保護的方法 Finalize (繼承自 Object。)
公用方法 GetHashCode Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. (覆寫 Object.GetHashCode()。)
公用方法 GetType (繼承自 Object。)
受保護的方法 MemberwiseClone (繼承自 Object。)
公用方法 ToString Returns a String value that represents the current object. (覆寫 Object.ToString()。)

上層

運算子

  名稱 說明
公用運算子靜態成員 Equality Determines whether two objects are equal by performing an equality operation on two Property objects.
公用運算子靜態成員 GreaterThan Determines whether one object is greater than another object by performing an greater than operation on two Property objects.
公用運算子靜態成員 Inequality Determines whether two objects are unequal by performing an inequality operation on two Property objects.
公用運算子靜態成員 LessThan Determines whether one object is less than another object by performing an less than operation on two Property objects.

上層

明確 繼承 實作

  名稱 說明
明確介面實作私用屬性 ISfcProperty.Attributes Returns an attribute collection that contains properties.
明確介面實作私用屬性 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.
明確介面實作私用屬性 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.
明確介面實作私用屬性 ISfcProperty.IsNull Gets the Boolean property value that specifies whether the property is set to null.
明確介面實作私用屬性 ISfcProperty.Name Gets the name of the property.
明確介面實作私用屬性 ISfcProperty.Required Gets the Boolean property value that specifies whether the property is required,.
明確介面實作私用屬性 ISfcProperty.Type Gets the type of property.
明確介面實作私用屬性 ISfcProperty.Value Gets or sets the value of the property.
明確介面實作私用屬性 ISfcProperty.Writable Gets the Boolean property value that specifies whether the property can be modified.

上層

備註

Thread Safety

此型別的任何公用靜態 (在 Microsoft Visual Basic 為共用) 成員具備多執行緒作業安全。並非所有的執行個體成員都是安全執行緒。

範例

設定屬性

執行緒安全性

這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。

請參閱

參考

Microsoft.SqlServer.Management.Smo 命名空間