Partager via


ViewDescriptionBase.TryInitialize Method

Initializes the view description base.

Namespace: Microsoft.ConfigurationManagement.AdminConsole
Assembly: Microsoft.ConfigurationManagement (in microsoft.configurationmanagement.dll)

Usage

'Usage
Dim instance As ViewDescriptionBase
Dim scopeNode As ScopeNode
Dim resourceAssembly As AssemblyDescription
Dim viewDetail As ViewAssemblyDescription
Dim returnValue As Boolean

returnValue = instance.TryInitialize(scopeNode, resourceAssembly, viewDetail)

Syntax

'Declaration
Public Function TryInitialize ( _
    scopeNode As ScopeNode, _
    resourceAssembly As AssemblyDescription, _
    viewDetail As ViewAssemblyDescription _
) As Boolean
public bool TryInitialize (
    ScopeNode scopeNode,
    AssemblyDescription resourceAssembly,
    ViewAssemblyDescription viewDetail
)
public:
virtual bool TryInitialize (
    ScopeNode^ scopeNode, 
    AssemblyDescription^ resourceAssembly, 
    ViewAssemblyDescription^ viewDetail
) sealed
public final boolean TryInitialize (
    ScopeNode scopeNode, 
    AssemblyDescription resourceAssembly, 
    ViewAssemblyDescription viewDetail
)
public final function TryInitialize (
    scopeNode : ScopeNode, 
    resourceAssembly : AssemblyDescription, 
    viewDetail : ViewAssemblyDescription
) : boolean

Parameters

  • scopeNode
    [in] Microsoft.ManagementConsole.ScopeNode object.

Return Value

true if the initialization succeeds; otherwise false.

Exceptions

Exception type Condition
ArgumentNullException

The viewDetail parameter cannot be null.

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 Server 2003, Windows Vista

Target Platforms

Windows Server 2003,Windows Vista

See Also

Reference

ViewDescriptionBase Class
ViewDescriptionBase Members
Microsoft.ConfigurationManagement.AdminConsole Namespace
AssemblyDescription
ViewAssemblyDescription