Freigeben über


OperationBindingCollection.Item-Eigenschaft

Ruft den Wert eines OperationBinding am angegebenen nullbasierten Index ab oder legt diesen fest.

Namespace: System.Web.Services.Description
Assembly: System.Web.Services (in system.web.services.dll)

Syntax

'Declaration
Public Default Property Item ( _
    index As Integer _
) As OperationBinding
'Usage
Dim instance As OperationBindingCollection
Dim index As Integer
Dim value As OperationBinding

value = instance(index)

instance(index) = value
public OperationBinding this [
    int index
] { get; set; }
public:
property OperationBinding^ default [int] {
    OperationBinding^ get (int index);
    void set (int index, OperationBinding^ value);
}
/** @property */
public OperationBinding get_Item (int index)

/** @property */
public void set_Item (int index, OperationBinding value)
JScript unterstützt die Verwendung von indizierten Eigenschaften, aber nicht die Deklaration von neuen indizierten Eigenschaften.

Parameter

  • index
    Der nullbasierte Index des OperationBinding, dessen Wert geändert oder zurückgegeben wird.

Eigenschaftenwert

Ein OperationBinding.

Beispiel

Im folgenden Beispiel wird die Verwendung eines nullbasierten Index zum Abrufen eines Members von OperationBindingCollection veranschaulicht.

' Get the OperationBinding of the Add operation from the collection.
Dim myOperationBinding As OperationBinding = _
   myOperationBindingCollection(3)

' Remove the OperationBinding of the 'Add' operation from
' the collection.
myOperationBindingCollection.Remove(myOperationBinding)
Console.WriteLine(ControlChars.NewLine & _
   "Removed the OperationBinding of the " & _
   "Add operation from the collection.")
// Get the OperationBinding of the Add operation from the collection.
OperationBinding myOperationBinding = 
   myOperationBindingCollection[3];

// Remove the OperationBinding of the Add operation from 
// the collection.
myOperationBindingCollection.Remove(myOperationBinding);
Console.WriteLine("\nRemoved the OperationBinding of the " +
   "Add operation from the collection.");
// Get the OperationBinding of the Add operation from the collection.
OperationBinding^ myOperationBinding = myOperationBindingCollection[ 3 ];

// Remove the OperationBinding of the Add operation from
// the collection.
myOperationBindingCollection->Remove( myOperationBinding );
Console::WriteLine( "\nRemoved the OperationBinding of the "
"Add operation from the collection." );
// Get the OperationBinding of the Add operation from the 
// collection.
OperationBinding myOperationBinding = myOperationBindingCollection.
    get_Item(3);
// Remove the OperationBinding of the Add operation from 
// the collection.
myOperationBindingCollection.Remove(myOperationBinding);
Console.WriteLine("\nRemoved the OperationBinding of the " 
    + "Add operation from the collection.");

Plattformen

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

Siehe auch

Referenz

OperationBindingCollection-Klasse
OperationBindingCollection-Member
System.Web.Services.Description-Namespace