共用方式為


CollectionItem.Id 屬性

Gets the collection item Id.

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

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Data)> _
Public Property Id As Integer 
    Get 
    Private Set
'用途
Dim instance As CollectionItem 
Dim value As Integer 

value = instance.Id
[SfcPropertyAttribute(SfcPropertyFlags.Data)]
public int Id { get; private set; }
[SfcPropertyAttribute(SfcPropertyFlags::Data)]
public:
property int Id {
    int get ();
    private: void set (int value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Data)>]
member Id : int with get, private set
function get Id () : int 
private function set Id (value : int)

屬性值

型別:System.Int32
Returns a Int32 value which is the local ID for the collection item.

備註

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

請參閱

參考

CollectionItem 類別

Microsoft.SqlServer.Management.Collector 命名空間