Freigeben über


UtilityClass.TryGetImageDescriptionFromDescription Method

Gets an image description from the specified assembly description.

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

Usage

'Usage
Dim sender As Object
Dim scopeNode As ScopeNode
Dim resultObject As IResultObject
Dim assemblyDescription As AssemblyDescription
Dim imageResourceName As AssemblyDescription
Dim returnValue As Boolean

returnValue = UtilityClass.TryGetImageDescriptionFromDescription(sender, scopeNode, resultObject, assemblyDescription, imageResourceName)

Syntax

'Declaration
<PermissionSetAttribute(SecurityAction.InheritanceDemand, Name:="FullTrust")> _
<PermissionSetAttribute(SecurityAction.LinkDemand, Name:="FullTrust")> _
Public Shared Function TryGetImageDescriptionFromDescription ( _
    sender As Object, _
    scopeNode As ScopeNode, _
    resultObject As IResultObject, _
    assemblyDescription As AssemblyDescription, _
    <OutAttribute> ByRef imageResourceName As AssemblyDescription _
) As Boolean
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name="FullTrust")] 
[PermissionSetAttribute(SecurityAction.LinkDemand, Name="FullTrust")] 
public static bool TryGetImageDescriptionFromDescription (
    Object sender,
    ScopeNode scopeNode,
    IResultObject resultObject,
    AssemblyDescription assemblyDescription,
    out AssemblyDescription imageResourceName
)
[PermissionSetAttribute(SecurityAction::InheritanceDemand, Name=L"FullTrust")] 
[PermissionSetAttribute(SecurityAction::LinkDemand, Name=L"FullTrust")] 
public:
static bool TryGetImageDescriptionFromDescription (
    Object^ sender, 
    ScopeNode^ scopeNode, 
    IResultObject^ resultObject, 
    AssemblyDescription^ assemblyDescription, 
    [OutAttribute] AssemblyDescription^% imageResourceName
)
/** @attribute PermissionSetAttribute(SecurityAction.InheritanceDemand, Name="FullTrust") */ 
/** @attribute PermissionSetAttribute(SecurityAction.LinkDemand, Name="FullTrust") */ 
public static boolean TryGetImageDescriptionFromDescription (
    Object sender, 
    ScopeNode scopeNode, 
    IResultObject resultObject, 
    AssemblyDescription assemblyDescription, 
    /** @attribute OutAttribute() */ /** @ref */ AssemblyDescription imageResourceName
)

Parameters

  • sender
    [in] System.Object instance that indicates the sender of an event requesting the image description.
  • scopeNode
    [in] Microsoft.ManagementConsole.ScopeNode object.
  • resultObject
    [in] IResultObject interface for getting and setting result object properties.
  • imageResourceName
    [out] AssemblyDescription object for the image description.

Return Value

true if the image description is retrieved; otherwise false.

Exceptions

Exception type Condition
ArgumentException

The assemblyDescription parameter cannot be null or an empty string.

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

UtilityClass Class
UtilityClass Members
Microsoft.ConfigurationManagement.AdminConsole Namespace
AssemblyDescription
IResultObject