Share via


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.String

    The target platform identifier.

  • targetPlatformVersion
    Type: System.String

    The 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

See Also

Reference

TargetPlatformSDK Class

Microsoft.Build.Utilities Namespace