PropertyData 類別

定義

代表 Windows Management Instrumentation (WMI) 屬性的相關資訊。

public ref class PropertyData : IComparable, IComparable<Microsoft::SqlServer::Management::Sdk::Sfc::ISfcProperty ^>, IEquatable<Microsoft::SqlServer::Management::Sdk::Sfc::ISfcProperty ^>, Microsoft::SqlServer::Management::Sdk::Sfc::ISfcProperty, System::ComponentModel::INotifyPropertyChanged
[System.Serializable]
public class PropertyData : IComparable, IComparable<Microsoft.SqlServer.Management.Sdk.Sfc.ISfcProperty>, IEquatable<Microsoft.SqlServer.Management.Sdk.Sfc.ISfcProperty>, Microsoft.SqlServer.Management.Sdk.Sfc.ISfcProperty, System.ComponentModel.INotifyPropertyChanged
[<System.Serializable>]
type PropertyData = class
    interface ISfcProperty
    interface INotifyPropertyChanged
    interface IComparable<ISfcProperty>
    interface IEquatable<ISfcProperty>
    interface IComparable
Public Class PropertyData
Implements IComparable, IComparable(Of ISfcProperty), IEquatable(Of ISfcProperty), INotifyPropertyChanged, ISfcProperty
繼承
PropertyData
衍生
屬性
實作

建構函式

PropertyData(ISfcProperty)

以所指定的屬性,初始化 PropertyData 類別的新執行個體。

PropertyData(String, Object)

使用指定的名稱和值,初始化 PropertyData 類別的新執行個體。

PropertyData(String, Object, Boolean)

初始化具有指定的名稱、值和啟用設定之 PropertyData 類別的新執行個體。

PropertyData(String, Type)

初始化具有指定的名稱和類型之 PropertyData 類別的新執行個體。

PropertyData(String, Type, Boolean)

初始化具有指定的名稱、類型和啟用設定之 PropertyData 類別的新執行個體。

PropertyData(String, Type, Object)

初始化具有指定的名稱、類型和值之 PropertyData 類別的新執行個體。

PropertyData(String, Type, Object, Boolean)

初始化具有指定的名稱、類型、值和啟用設定之 PropertyData 類別的新執行個體。

屬性

Attributes

取得物件的屬性集合。

Dirty

取得或設定值,這個值表示 PropertyData 物件從上次儲存資料之後是否已修改。

Enabled

取得或設定值,這個值表示是否啟用屬性值。

IsNull

取得值,指出指定的資料是否包含 null 值。

Name

取得屬性的字串值。

Required

取得或設定屬性的必要值。

Type

取得指定的屬性類型。

Value

取得或設定屬性的目前值。

Writable

取得或設定值,這個值表示屬性是否可寫入。

方法

AppendAttribute(Attribute[])

指定要用於屬性 (Property) 的屬性 (Attribute)。

AppendAttribute(AttributeCollection)

指定要在屬性 (Property) 內的集合中使用的屬性 (Attribute)。

AppendAttribute(IEnumerable<Attribute>)

傳回屬性的 IEnumerator。

CompareTo(ISfcProperty)

表示要與另一個物件比較的指定屬性。

CompareTo(Object)

比較目前執行個體與相同類型的另一個物件。

Equals(ISfcProperty)

指示這個執行個體和指定的物件是否相等。

OnPropertyChanged(String)

引發具有指定字串的 PropertyChanged 事件。

事件

PropertyChanged

代表已變更的屬性執行個體。 此類別無法獲得繼承。

適用於