Share via


ManagementPack Constructor (TextReader, IManagementPackStore)

Creates a new instance of the ManagementPack class by reading the contents from the specified TextReader object and store.

Namespace: Microsoft.EnterpriseManagement.Configuration
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in microsoft.enterprisemanagement.operationsmanager.dll)

Usage

'Usage
Dim mpcontents As TextReader
Dim storeForReferences As IManagementPackStore

Dim instance As New ManagementPack(mpcontents, storeForReferences)

Syntax

'Declaration
Public Sub New ( _
    mpcontents As TextReader, _
    storeForReferences As IManagementPackStore _
)
public ManagementPack (
    TextReader mpcontents,
    IManagementPackStore storeForReferences
)
public:
ManagementPack (
    TextReader^ mpcontents, 
    IManagementPackStore^ storeForReferences
)
public ManagementPack (
    TextReader mpcontents, 
    IManagementPackStore storeForReferences
)
public function ManagementPack (
    mpcontents : TextReader, 
    storeForReferences : IManagementPackStore
)

Parameters

  • mpcontents
    Specifies a TextReader object from which to read the management pack contents.
  • storeForReferences
    The store to use when searching for referenced management packs. This is usually a ManagementPackFileStore object (when working with management packs in the file system only) or a ManagementGroup object (when working with a SystemCenter installation.)

Platforms

Development Platforms

Windows Server 2008, Windows Vista, Windows Server 2003, and Windows XP

Target Platforms

Windows Server 2008,Windows Server 2003,Windows Vista,Windows XP

See Also

Reference

ManagementPack Class
ManagementPack Members
Microsoft.EnterpriseManagement.Configuration Namespace

Send comments about this topic to Microsoft.