次の方法で共有


ManagementPack.ProcessElementReferencesIncludeTokens Method

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Scans the management pack and finds all of the $MPElement[…]$ tokens. It then parses the tokens and creates ManagementPackElementReference<ManagementPackElement> objects (element references) that are returned.

Namespace: Microsoft.EnterpriseManagement.Configuration
Assembly: Microsoft.EnterpriseManagement.Core (in Microsoft.EnterpriseManagement.Core.dll)

Usage

'Usage
Dim instance As ManagementPack
Dim reference As String
Dim returnValue As IList(Of KeyValuePair(Of String, ManagementPackElementReference(Of T)))

returnValue = instance.ProcessElementReferencesIncludeTokens(reference)

Syntax

'Declaration
Public Function ProcessElementReferencesIncludeTokens(Of T As ManagementPackElement) ( _
    reference As String _
) As IList(Of KeyValuePair(Of String, ManagementPackElementReference(Of T)))
public IList<KeyValuePair<string,ManagementPackElementReference<T>>> ProcessElementReferencesIncludeTokens<T> (
    string reference
) where T : ManagementPackElement
public:
generic<typename T> where T : ManagementPackElement
IList<KeyValuePair<String^, ManagementPackElementReference<T>^>>^ ProcessElementReferencesIncludeTokens (
    String^ reference
)

GenericParameters

  • T
    The management pack element.

Parameters

  • reference
    The reference string to the process. For example, the reference string: $MPElement[Name="Microsoft.Windows.InternetInformationServices.2003.FTPServer"]$

Return Value

The IList of element references.

Remarks

For example, the management pack may contain the following tokens, returned as element references:

$MPElement[Name="Microsoft.Windows.InternetInformationServices.2003.FTPServer"]$

$MPElement[Name="Windows!Microsoft.Windows.Computer"]$

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows Server 2003, and

Target Platforms

Windows Server 2008,Windows Server 2003

See Also

Reference

ManagementPack Class
ManagementPack Members
Microsoft.EnterpriseManagement.Configuration Namespace