Initializes a new instance of the ManagementPack class by reading the contents from the specified TextReader and store. Namespace: Microsoft.EnterpriseManagement.Configuration
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in microsoft.enterprisemanagement.operationsmanager.dll)

Usage

Visual Basic
Dim mpcontents As TextReader
Dim storeForReferences As IManagementPackStore

Dim instance As New ManagementPack(mpcontents, storeForReferences)

Syntax

Visual Basic
Public Sub New ( _
		mpcontents As TextReader, _
		storeForReferences As IManagementPackStore _
)
C#
public ManagementPack (
		TextReader mpcontents,
		IManagementPackStore storeForReferences
)
C++
public:
ManagementPack (
		TextReader^ mpcontents, 
		IManagementPackStore^ storeForReferences
)
J#
public ManagementPack (
		TextReader mpcontents, 
		IManagementPackStore storeForReferences
)
JScript
public function ManagementPack (
		mpcontents : TextReader, 
		storeForReferences : IManagementPackStore
)

Parameters

mpcontents

Specifies a TextReader from which to read the management pack contents.

storeForReferences

The store to use when searching for referenced management packs. This is usually a ManagementPackFileStore (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