WebSocket.IsApplicationTargeting45 方法

定義

警告

此 API 現已淘汰。

傳回表示 WebSocket 執行個體是否以 .NET Framework 4.5.NET Framework 4.5 為目標的值。Returns a value that indicates if the WebSocket instance is targeting .NET Framework 4.5.NET Framework 4.5.

public:
 static bool IsApplicationTargeting45();
[System.Obsolete]
[System.Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.")]
[System.Obsolete("This is just a temporary workaround until the CLR provides a public (but hidden) API to check  whether an application is targeting 4.5. So don't take a dependency on it.")]
public static bool IsApplicationTargeting45 ();
static member IsApplicationTargeting45 : unit -> bool
Public Shared Function IsApplicationTargeting45 () As Boolean

傳回

WebSocket 是以 .NET Framework 4.5.NET Framework 4.5 為目標,則為 true;否則為 falsetrue if the WebSocket is targeting .NET Framework 4.5.NET Framework 4.5; otherwise, false.

屬性

適用於