Compartilhar via


ManagementPack Constructor (String)

Initializes a new instance of the ManagementPack class from the specified file path.

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

Usage

'Usage
Dim filepath As String

Dim instance As New ManagementPack(filepath)

Syntax

'Declaration
Public Sub New ( _
    filepath As String _
)
public ManagementPack (
    string filepath
)
public:
ManagementPack (
    String^ filepath
)
public ManagementPack (
    String filepath
)
public function ManagementPack (
    filepath : String
)

Parameters

  • filepath
    The file path of the management pack to load. The file name extension must be .xml or .mp.

Remarks

The ManagementPack constructor assumes that all the references to the management pack being loaded are also available at the same file path. Use other constructor overloads if you want to include other file paths or load management packs from the database.

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