다음을 통해 공유


IEntityTypeManagement.GetRelationshipClass Method (String, ManagementPack)

[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

'Usage
Dim instance As IEntityTypeManagement
Dim typeName As String
Dim managementPack As ManagementPack
Dim returnValue As ManagementPackRelationship

returnValue = instance.GetRelationshipClass(typeName, managementPack)

Syntax

'Declaration
Function GetRelationshipClass ( _
    typeName As String, _
    managementPack As ManagementPack _
) As ManagementPackRelationship
ManagementPackRelationship GetRelationshipClass (
    string typeName,
    ManagementPack managementPack
)
ManagementPackRelationship^ GetRelationshipClass (
    String^ typeName, 
    ManagementPack^ managementPack
)
ManagementPackRelationship GetRelationshipClass (
    String typeName, 
    ManagementPack managementPack
)
function GetRelationshipClass (
    typeName : String, 
    managementPack : ManagementPack
) : ManagementPackRelationship

Parameters

  • typeName
    Name of the relationship.
  • managementPack
    The management pack that contains the relationship to return.

Return Value

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 Vista, Windows Server 2003, and

Target Platforms

Windows Server 2008,Windows Server 2003

See Also

Reference

IEntityTypeManagement Interface
IEntityTypeManagement Members
Microsoft.EnterpriseManagement Namespace