BindingCollection.Item[] 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
전달된 매개 변수로 지정된 인스턴스를 가져오거나 설정합니다 Binding .
오버로드
| Name | Description |
|---|---|
| Item[Int32] |
지정된 0부터 시작하는 인덱스의 Binding 값을 가져오거나 설정합니다. |
| Item[String] |
Binding 해당 이름으로 지정된 형식을 가져옵니다. |
Item[Int32]
지정된 0부터 시작하는 인덱스의 Binding 값을 가져오거나 설정합니다.
public:
property System::Web::Services::Description::Binding ^ default[int] { System::Web::Services::Description::Binding ^ get(int index); void set(int index, System::Web::Services::Description::Binding ^ value); };
public System.Web.Services.Description.Binding this[int index] { get; set; }
member this.Item(int) : System.Web.Services.Description.Binding with get, set
Default Public Property Item(index As Integer) As Binding
매개 변수
속성 값
Binding.
예외
예제
for ( int i = 0; i < myServiceDescription->Bindings->Count; ++i )
{
Console::WriteLine( "\nBinding {0}", i );
// Get Binding at index i.
myBinding = myServiceDescription->Bindings[ i ];
Console::WriteLine( "\t Name : {0}", myBinding->Name );
Console::WriteLine( "\t Type : {0}", myBinding->Type );
}
for(int i=0; i < myServiceDescription.Bindings.Count; ++i)
{
Console.WriteLine("\nBinding " + i );
// Get Binding at index i.
myBinding = myServiceDescription.Bindings[i];
Console.WriteLine("\t Name : " + myBinding.Name);
Console.WriteLine("\t Type : " + myBinding.Type);
}
Dim i As Integer
While i < myServiceDescription.Bindings.Count
Console.WriteLine((ControlChars.Cr + "Binding " + i.ToString()))
' Get Binding at index i.
myBinding = myServiceDescription.Bindings(i)
Console.WriteLine((ControlChars.Tab + " Name : " + myBinding.Name))
Console.WriteLine((ControlChars.Tab + " Type : " + myBinding.Type.ToString()))
i = i + 1
End While
적용 대상
Item[String]
Binding 해당 이름으로 지정된 형식을 가져옵니다.
public:
property System::Web::Services::Description::Binding ^ default[System::String ^] { System::Web::Services::Description::Binding ^ get(System::String ^ name); };
public System.Web.Services.Description.Binding this[string name] { get; }
member this.Item(string) : System.Web.Services.Description.Binding
Default Public ReadOnly Property Item(name As String) As Binding
매개 변수
속성 값
Binding.
예제
다음 예제에서는 myServiceDescription의 속성에서 명명된 Bindings "MathServiceHttpGet"을 검색 Binding 합니다.
// Get Binding Name = S"MathServiceSoap".
myBinding = myServiceDescription->Bindings[ "MathServiceHttpGet" ];
if ( myBinding != nullptr )
{
Console::WriteLine( "\n\nName : {0}", myBinding->Name );
Console::WriteLine( "Type : {0}", myBinding->Type );
}
// Get Binding Name = "MathServiceSoap".
myBinding = myServiceDescription.Bindings["MathServiceHttpGet"];
if (myBinding != null)
{
Console.WriteLine("\n\nName : " + myBinding.Name);
Console.WriteLine("Type : " + myBinding.Type);
}
' Get Binding Name = "MathServiceSoap".
myBinding = myServiceDescription.Bindings("MathServiceHttpGet")
If Not (myBinding Is Nothing) Then
Console.WriteLine((ControlChars.Cr + ControlChars.Cr + "Name : " + myBinding.Name))
Console.WriteLine(("Type : " + myBinding.Type.ToString()))
End If