[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 based on the well-known system relationship. Namespace: Microsoft.EnterpriseManagement
Assembly: Microsoft.EnterpriseManagement.Core (in microsoft.enterprisemanagement.core.dll)

Usage

Visual Basic
Dim instance As IEntityTypeManagement
Dim relationship As SystemRelationship
Dim returnValue As ManagementPackRelationship

returnValue = instance.GetRelationshipClass(relationship)

Syntax

Visual Basic
Function GetRelationshipClass ( _
		relationship As SystemRelationship _
) As ManagementPackRelationship
C#
ManagementPackRelationship GetRelationshipClass (
		SystemRelationship relationship
)
C++
ManagementPackRelationship^ GetRelationshipClass (
		SystemRelationship^ relationship
)
J#
ManagementPackRelationship GetRelationshipClass (
		SystemRelationship relationship
)
JScript
function GetRelationshipClass (
		relationship : SystemRelationship
) : ManagementPackRelationship

Parameters

relationship

Type: SystemRelationship

The well-known system relationship.

Return Value

Type: ManagementPackRelationship The relationship.

Exceptions

Exception type Condition
ArgumentNullException

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

ArgumentOutOfRangeException

The ManagementPackRelationship type that is identified by the relationship parameter was not one of the supported values.

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