IVsTargetFrameworkAssemblies.IsSystemAssembly Method
Checks if a specified assembly is a system assembly and gets its framework version.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.9.0 (in Microsoft.VisualStudio.Shell.Interop.9.0.dll)
Syntax
'Declaration
Function IsSystemAssembly ( _
szAssemblyFile As String, _
<OutAttribute> ByRef pIsSystem As Integer, _
<OutAttribute> ByRef pTargetFrameworkVersion As UInteger _
) As Integer
int IsSystemAssembly(
string szAssemblyFile,
out int pIsSystem,
out uint pTargetFrameworkVersion
)
int IsSystemAssembly(
[InAttribute] String^ szAssemblyFile,
[OutAttribute] int% pIsSystem,
[OutAttribute] unsigned int% pTargetFrameworkVersion
)
abstract IsSystemAssembly :
szAssemblyFile:string *
pIsSystem:int byref *
pTargetFrameworkVersion:uint32 byref -> int
function IsSystemAssembly(
szAssemblyFile : String,
pIsSystem : int,
pTargetFrameworkVersion : uint
) : int
Parameters
szAssemblyFile
Type: String[in] Path to the assembly to check.
pIsSystem
Type: Int32%[out] True if the assembly is a system assembly.
pTargetFrameworkVersion
Type: UInt32%[out] A IEnumTargetFrameworks value specifying the supported framework version.
Return Value
Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From compsvcspkg90.idl:
HRESULT IsSystemAssembly(
[in] LPCOLESTR szAssemblyFile,
[out] BOOL *pIsSystem,
[out] TARGETFRAMEWORKVERSION *pTargetFrameworkVersion
);
.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.