Retrieves the ServiceElement with the specified name.
Namespace: Microsoft.IdentityModel.Configuration
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim instance As ServiceElementCollection
Dim name As String
Dim returnValue As ServiceElement

returnValue = instance.GetElement(name)

Syntax

Visual Basic
Public Function GetElement ( _
		name As String _
) As ServiceElement
C#
public ServiceElement GetElement (
		string name
)
C++
public:
ServiceElement^ GetElement (
		String^ name
)
J#
public ServiceElement GetElement (
		String name
)
JScript
public function GetElement (
		name : String
) : ServiceElement

Parameters

name

The name of the ServiceElement to retrieve.

Return Value

A ServiceElement instance.

Exceptions

Exception type Condition

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

See Also