[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]Gets a single relationship class object from a management pack by name. Namespace: Microsoft.EnterpriseManagement
Assembly: Microsoft.EnterpriseManagement.Core (in microsoft.enterprisemanagement.core.dll)

Usage

Visual Basic
Dim instance As IEntityTypeManagement
Dim typeName As String
Dim managementPack As ManagementPack
Dim returnValue As ManagementPackRelationship

returnValue = instance.GetRelationshipClass(typeName, managementPack)

Syntax

Visual Basic
Function GetRelationshipClass ( _
		typeName As String, _
		managementPack As ManagementPack _
) As ManagementPackRelationship
C#
ManagementPackRelationship GetRelationshipClass (
		string typeName,
		ManagementPack managementPack
)
C++
ManagementPackRelationship^ GetRelationshipClass (
		String^ typeName, 
		ManagementPack^ managementPack
)
J#
ManagementPackRelationship GetRelationshipClass (
		String typeName, 
		ManagementPack managementPack
)
JScript
function GetRelationshipClass (
		typeName : String, 
		managementPack : ManagementPack
) : ManagementPackRelationship

Parameters

typeName

Type: String

Name of the relationship.

managementPack

Type: ManagementPack

The management pack that contains the relationship to return.

Return Value

Type: ManagementPackRelationship The relationship.

Exceptions

Exception type Condition
ArgumentNullException

The managementPack parameter is a null reference (Nothing in Visual Basic).

-or-

The typeName parameter is a null reference (Nothing in Visual Basic).

ObjectNotFoundException

The ManagementPackRelationship type that is identified by the typeName parameter was not found.

ArgumentOutOfRangeException

The typeName parameter is equal to Empty.

Thread Safety

This method is thread safe.

Platforms

Development Platforms

Windows Server 2008, Windows Vista, Windows Server 2003, and Windows XP

Target Platforms

Windows Server 2008,Windows Server 2003

See Also