BindingCollection.Item Property (String)

Gets a Binding specified by its name.

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

public:
property Binding^ default [String^] {
	Binding^ get (String^ name);
}
/** @property */
public Binding get_Item (String name)

Not applicable.

Parameters

name

The name of the Binding returned.

Property Value

A Binding.

The following example searches the Bindings property of myServiceDescription for a Binding named "MathServiceHttpGet".

// 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.get_Bindings().
    get_Item("MathServiceHttpGet");
if (myBinding != null) {
    Console.WriteLine("\n\nName : " + myBinding.get_Name());
    Console.WriteLine("Type : " + myBinding.get_Type());
}

Windows 98, Windows Server 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

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show: