IResourceManagement.GetResource 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 management pack resource.
Overloads
GetResource<T>(Guid) |
Gets a management pack resource by identifier. |
GetResource<T>(String, ManagementPack) |
Gets a management pack resource from a specific management pack by name. |
GetResource<T>(Guid)
Gets a management pack resource by identifier.
public:
generic <typename T>
where T : Microsoft::EnterpriseManagement::Configuration::ManagementPackResource T GetResource(Guid resourceId);
public T GetResource<T> (Guid resourceId) where T : Microsoft.EnterpriseManagement.Configuration.ManagementPackResource;
abstract member GetResource : Guid -> 'T (requires 'T :> Microsoft.EnterpriseManagement.Configuration.ManagementPackResource)
Public Function GetResource(Of T As ManagementPackResource) (resourceId As Guid) As T
Type Parameters
Parameters
- resourceId
- Guid
The resource identifier.
Returns
The resource.
Applies to
GetResource<T>(String, ManagementPack)
Gets a management pack resource from a specific management pack by name.
public:
generic <typename T>
where T : Microsoft::EnterpriseManagement::Configuration::ManagementPackResource T GetResource(System::String ^ resourceName, Microsoft::EnterpriseManagement::Configuration::ManagementPack ^ managementPack);
public T GetResource<T> (string resourceName, Microsoft.EnterpriseManagement.Configuration.ManagementPack managementPack) where T : Microsoft.EnterpriseManagement.Configuration.ManagementPackResource;
abstract member GetResource : string * Microsoft.EnterpriseManagement.Configuration.ManagementPack -> 'T (requires 'T :> Microsoft.EnterpriseManagement.Configuration.ManagementPackResource)
Public Function GetResource(Of T As ManagementPackResource) (resourceName As String, managementPack As ManagementPack) As T
Type Parameters
Parameters
- resourceName
- String
The name of the resource.
- managementPack
- ManagementPack
The management pack that contains the resource.
Returns
The resource.