ImageHelper.GetImage Method (Type, String)
Gets an image from a resource
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'Dichiarazione
Public Shared Function GetImage ( _
type As Type, _
resourceName As String _
) As Image
public static Image GetImage(
Type type,
string resourceName
)
public:
static Image^ GetImage(
Type^ type,
String^ resourceName
)
static member GetImage :
type:Type *
resourceName:string -> Image
public static function GetImage(
type : Type,
resourceName : String
) : Image
Parameters
- type
Type: System.Type
A type in the assembly to read resource from
- resourceName
Type: System.String
name of the metafile resource
Return Value
Type: System.Drawing.Image
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.