Udostępnij za pośrednictwem


IVsFrameworkMultiTargeting.GetTargetFramework(String, String, String) Method

Definition

Retrieves the target framework moniker of the target framework.

public:
 int GetTargetFramework(System::String ^ pwszAssemblyPath, System::String ^ pwszTargetFrameworkIdentifier, [Runtime::InteropServices::Out] System::String ^ % pbstrTargetFrameworkMoniker);
int GetTargetFramework(std::wstring const & pwszAssemblyPath, std::wstring const & pwszTargetFrameworkIdentifier, [Runtime::InteropServices::Out] std::wstring const & & pbstrTargetFrameworkMoniker);
public int GetTargetFramework (string pwszAssemblyPath, string pwszTargetFrameworkIdentifier, out string pbstrTargetFrameworkMoniker);
abstract member GetTargetFramework : string * string * string -> int
Public Function GetTargetFramework (pwszAssemblyPath As String, pwszTargetFrameworkIdentifier As String, ByRef pbstrTargetFrameworkMoniker As String) As Integer

Parameters

pwszAssemblyPath
String

[in] The path to an assembly.

pwszTargetFrameworkIdentifier
String

[in] The identifier of the target framework.

pbstrTargetFrameworkMoniker
String

[out, retval] The moniker of the target framework.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Applies to