IVsFrameworkMultiTargeting.ResolveAssemblyPath Method
Tries to resolve the assembly path in the specified target framework.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assemblies: Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)
Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Syntax
'Declaration
Function ResolveAssemblyPath ( _
pwszAssemblySpec As String, _
pwszTargetFrameworkMoniker As String, _
<OutAttribute> ByRef pbstrResolvedAssemblyPath As String _
) As Integer
int ResolveAssemblyPath(
string pwszAssemblySpec,
string pwszTargetFrameworkMoniker,
out string pbstrResolvedAssemblyPath
)
int ResolveAssemblyPath(
[InAttribute] String^ pwszAssemblySpec,
[InAttribute] String^ pwszTargetFrameworkMoniker,
[OutAttribute] String^% pbstrResolvedAssemblyPath
)
abstract ResolveAssemblyPath :
pwszAssemblySpec:string *
pwszTargetFrameworkMoniker:string *
pbstrResolvedAssemblyPath:string byref -> int
function ResolveAssemblyPath(
pwszAssemblySpec : String,
pwszTargetFrameworkMoniker : String,
pbstrResolvedAssemblyPath : String
) : int
Parameters
pwszAssemblySpec
Type: System.String[in] The assembly name/specification. This parameter can be either a path or an assembly name. If it is a path, the assembly name is loaded from the path.
pwszTargetFrameworkMoniker
Type: System.String[in] The moniker of the target framework.
pbstrResolvedAssemblyPath
Type: System.String%[out, retval] The resolved assembly path. Returns null if the assembly does not belong in the given target framework.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
.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.