IEntityTypeManagement.GetRelationshipClass Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a relationship object that relates one management pack class to another management pack class. Relationships are defined in a management pack under the RelationshipTypes
element, which is under the EntityTypes
element.
Overloads
GetRelationshipClass(SystemRelationship) |
Gets a single relationship class object based on the well-known system relationship. |
GetRelationshipClass(Guid) |
Gets a single relationship class object from the supplied unique identifier. |
GetRelationshipClass(String, ManagementPack) |
Gets a single relationship class object from a management pack by name. |
GetRelationshipClass(SystemRelationship)
Gets a single relationship class object based on the well-known system relationship.
public:
Microsoft::EnterpriseManagement::Configuration::ManagementPackRelationship ^ GetRelationshipClass(Microsoft::EnterpriseManagement::Configuration::SystemRelationship ^ relationship);
public Microsoft.EnterpriseManagement.Configuration.ManagementPackRelationship GetRelationshipClass (Microsoft.EnterpriseManagement.Configuration.SystemRelationship relationship);
abstract member GetRelationshipClass : Microsoft.EnterpriseManagement.Configuration.SystemRelationship -> Microsoft.EnterpriseManagement.Configuration.ManagementPackRelationship
Public Function GetRelationshipClass (relationship As SystemRelationship) As ManagementPackRelationship
Parameters
- relationship
- SystemRelationship
The well-known system relationship.
Returns
The relationship.
Exceptions
The relationship
parameter is a null reference (Nothing in Visual Basic).
The ManagementPackRelationship type that is identified by the relationship
parameter was not one of the supported values.
Applies to
GetRelationshipClass(Guid)
Gets a single relationship class object from the supplied unique identifier.
public:
Microsoft::EnterpriseManagement::Configuration::ManagementPackRelationship ^ GetRelationshipClass(Guid id);
public Microsoft.EnterpriseManagement.Configuration.ManagementPackRelationship GetRelationshipClass (Guid id);
abstract member GetRelationshipClass : Guid -> Microsoft.EnterpriseManagement.Configuration.ManagementPackRelationship
Public Function GetRelationshipClass (id As Guid) As ManagementPackRelationship
Parameters
- id
- Guid
The unique identifier of a relationship.
Returns
The relationship.
Exceptions
The ManagementPackRelationship type that is identified by the id
parameter was not found.
Applies to
GetRelationshipClass(String, ManagementPack)
Gets a single relationship class object from a management pack by name.
public:
Microsoft::EnterpriseManagement::Configuration::ManagementPackRelationship ^ GetRelationshipClass(System::String ^ typeName, Microsoft::EnterpriseManagement::Configuration::ManagementPack ^ managementPack);
public Microsoft.EnterpriseManagement.Configuration.ManagementPackRelationship GetRelationshipClass (string typeName, Microsoft.EnterpriseManagement.Configuration.ManagementPack managementPack);
abstract member GetRelationshipClass : string * Microsoft.EnterpriseManagement.Configuration.ManagementPack -> Microsoft.EnterpriseManagement.Configuration.ManagementPackRelationship
Public Function GetRelationshipClass (typeName As String, managementPack As ManagementPack) As ManagementPackRelationship
Parameters
- typeName
- String
Name of the relationship.
- managementPack
- ManagementPack
The management pack that contains the relationship to return.
Returns
The relationship.
Exceptions
The managementPack
parameter is a null reference (Nothing in Visual Basic) or the typeName
parameter is a null reference (Nothing in Visual Basic).
The ManagementPackRelationship type that is identified by the typeName
parameter was not found.
The typeName
parameter is equal to Empty.
Applies to
Thread Safety
These methods are thread safe.