Export (0) Print
Expand All

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 Binding this[
	string name
] { get; }

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 = "MathServiceSoap".
myBinding = myServiceDescription.Bindings["MathServiceHttpGet"];
if (myBinding != null)
{
   Console.WriteLine("\n\nName : " + myBinding.Name);
   Console.WriteLine("Type : " + myBinding.Type);
}

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft