Assembly: Microsoft.ConfigurationManagement (in microsoft.configurationmanagement.dll)
Usage
Visual Basic |
---|
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
Visual Basic |
---|
<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 |
C# |
---|
[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 ) |
C++ |
---|
[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 ) |
J# |
---|
/** @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 ) |
JScript |
---|
|
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.
- assemblyDescription
-
[in] AssemblyDescription object from which to get the image description.
- 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.