OperationCollection.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 Operation at the specified zero-based index.
public:
property System::Web::Services::Description::Operation ^ default[int] { System::Web::Services::Description::Operation ^ get(int index); void set(int index, System::Web::Services::Description::Operation ^ value); };
public System.Web.Services.Description.Operation this[int index] { get; set; }
member this.Item(int) : System.Web.Services.Description.Operation with get, set
Default Public Property Item(index As Integer) As Operation
Parameters
Property Value
An Operation
.
Examples
The following example demonstrates the use of the zero-based index to retrieve a member of the OperationCollection
.
myOperationCollection->Remove( myOperation );
// Insert the 'myOpearation' operation at the index '0'.
myOperationCollection->Insert( 0, myOperation );
Console::WriteLine( "The operation at index '0' is : {0}", myOperationCollection[ 0 ]->Name );
myOperationCollection.Remove(myOperation);
// Insert the 'myOpearation' operation at the index '0'.
myOperationCollection.Insert(0, myOperation);
Console.WriteLine("The operation at index '0' is : " +
myOperationCollection[0].Name);
myOperationCollection.Remove(myOperation)
' Insert the 'myOpearation' operation at the index '0'.
myOperationCollection.Insert(0, myOperation)
Console.WriteLine("The operation at index '0' is : " + _
myOperationCollection.Item(0).Name)
Applies to
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET