共用方式為


TransPublicationCollection.Item[] Property

Definition

Gets a TransPublication object in the collection, by name or by index number.

Overloads

Item[Int32]

Gets a TransPublication object in the collection by index number.

Item[String]

Gets a TransPublication object in the collection by name.

Remarks

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

Item[Int32]

Gets a TransPublication object in the collection by index number.

public:
 property Microsoft::SqlServer::Replication::TransPublication ^ default[int] { Microsoft::SqlServer::Replication::TransPublication ^ get(int index); };
public Microsoft.SqlServer.Replication.TransPublication this[int index] { get; }
member this.Item(int) : Microsoft.SqlServer.Replication.TransPublication
Default Public ReadOnly Property Item(index As Integer) As TransPublication

Parameters

index
Int32

An Int32 value that specifies the position of the TransPublication object in the TransPublicationCollection.

Property Value

A TransPublication object.

Remarks

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

Applies to

Item[String]

Gets a TransPublication object in the collection by name.

public:
 property Microsoft::SqlServer::Replication::TransPublication ^ default[System::String ^] { Microsoft::SqlServer::Replication::TransPublication ^ get(System::String ^ name); };
public Microsoft.SqlServer.Replication.TransPublication this[string name] { get; }
member this.Item(string) : Microsoft.SqlServer.Replication.TransPublication
Default Public ReadOnly Property Item(name As String) As TransPublication

Parameters

name
String

A String value that specifies the name of the transactional or snapshot publication.

Property Value

A TransPublication object.

Remarks

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

Applies to