TargetPlatformSDK.ContainsPlatform Method
Determines whether this SDK supports the given platform.
Namespace: Microsoft.Build.Utilities
Assembly: Microsoft.Build.Utilities.Core (in Microsoft.Build.Utilities.Core.dll)
Syntax
'Declaration
Public Function ContainsPlatform ( _
targetPlatformIdentifier As String, _
targetPlatformVersion As String _
) As Boolean
public bool ContainsPlatform(
string targetPlatformIdentifier,
string targetPlatformVersion
)
public:
bool ContainsPlatform(
String^ targetPlatformIdentifier,
String^ targetPlatformVersion
)
member ContainsPlatform :
targetPlatformIdentifier:string *
targetPlatformVersion:string -> bool
public function ContainsPlatform(
targetPlatformIdentifier : String,
targetPlatformVersion : String
) : boolean
Parameters
targetPlatformIdentifier
Type: System.StringThe target platform identifier.
targetPlatformVersion
Type: System.StringThe target platform version.
Return Value
Type: System.Boolean
Returns true if this SDK supports the given platform, or false otherwise.
Remarks
Introduced in Visual Studio 2015.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.