OperationBindingCollection.Item[Int32] Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the value of an OperationBinding at the specified zero-based index.
public:
property System::Web::Services::Description::OperationBinding ^ default[int] { System::Web::Services::Description::OperationBinding ^ get(int index); void set(int index, System::Web::Services::Description::OperationBinding ^ value); };
public System.Web.Services.Description.OperationBinding this[int index] { get; set; }
member this.Item(int) : System.Web.Services.Description.OperationBinding with get, set
Default Public Property Item(index As Integer) As OperationBinding
Parameters
- index
- Int32
The zero-based index of the OperationBinding whose value is modified or returned.
Property Value
An OperationBinding
.
Examples
The following example demonstrates the use of a zero-based index to retrieve a member of the OperationBindingCollection
.
// 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.
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.")
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET