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^ name
] {
	Binding^ get(String^ name);
}

Parameters

name
Type: System::String^

The name of the Binding returned.

Property Value

Type: System.Web.Services.Description::Binding^

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 );
}

.NET Framework
Available since 1.1
Return to top
Show: