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 ReadOnly Property Item (
	name As String
) As Binding

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 Not (myBinding Is Nothing) Then
   Console.WriteLine((ControlChars.Cr + ControlChars.Cr + "Name : " + myBinding.Name))
   Console.WriteLine(("Type : " + myBinding.Type.ToString()))
End If

.NET Framework
Available since 1.1
Return to top
Show: