Compartilhar via


Propriedade do RDL ServiceContractCollection.Item (String)

Gets a ServiceContract object in the collection by name.

Namespace:  Microsoft.SqlServer.Management.Smo.Broker
Assembly:  Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)

Sintaxe

'Declaração
Public ReadOnly Default Property Item ( _
    name As String _
) As ServiceContract 
    Get
'Uso
Dim instance As ServiceContractCollection 
Dim name As String 
Dim value As ServiceContract 

value = instance(name)
public ServiceContract this[
    string name
] { get; }
public:
property ServiceContract^ default[String^ name] {
    ServiceContract^ get (String^ name);
}
member Item : ServiceContract
JScript dá suporte ao uso de propriedades indexadas, mas não à declaração de propriedades novas.

Parâmetros

Valor da propriedade

Tipo: Microsoft.SqlServer.Management.Smo.Broker.ServiceContract
A ServiceContract object value that represents the service contract.

Exemplos

Usando coleções

Consulte também

Referência

ServiceContractCollection Classe

Sobrecarregado Item

Namespace Microsoft.SqlServer.Management.Smo.Broker

Outros recursos

Usando coleções