共用方式為


TransPublicationCollection.Item 屬性 (String)

Gets a TransPublication object in the collection by name.

命名空間:  Microsoft.SqlServer.Replication
組件:  Microsoft.SqlServer.Rmo (在 Microsoft.SqlServer.Rmo.dll 中)

語法

'宣告
Public ReadOnly Default Property Item ( _
    name As String _
) As TransPublication 
    Get
'用途
Dim instance As TransPublicationCollection 
Dim name As String 
Dim value As TransPublication 

value = instance(name)
public TransPublication this[
    string name
] { get; }
public:
property TransPublication^ default[String^ name] {
    TransPublication^ get (String^ name);
}
member Item : TransPublication
JScript 支援索引屬性的使用,但不支援新屬性的宣告。

參數

  • name
    型別:System.String
    A String value that specifies the name of the transactional or snapshot publication.

屬性值

型別:Microsoft.SqlServer.Replication.TransPublication
A TransPublication object.

備註

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

請參閱

參考

TransPublicationCollection 類別

Item 多載

Microsoft.SqlServer.Replication 命名空間