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.