Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)
Syntax
'宣言
Public Shared Function GetImage ( _
type As Type, _
resourceName As String _
) As Image
'使用
Dim type As Type
Dim resourceName As String
Dim returnValue As Image
returnValue = ImageHelper.GetImage(type, _
resourceName)
public static Image GetImage(
Type type,
string resourceName
)
public:
static Image^ GetImage(
Type^ type,
String^ resourceName
)
public static function GetImage(
type : Type,
resourceName : String
) : Image
Parameters
- type
Type: System.Type
- resourceName
Type: System.String
Return Value
Type: System.Drawing.Image
Permissions
- 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.