WebSocket.IsApplicationTargeting45 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
警告
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.
傳回值,指出 WebSocket 實例是否以 4.5 為目標 .NET Framework。
public:
static bool IsApplicationTargeting45();
[System.Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.")]
public static bool IsApplicationTargeting45 ();
[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 ();
[<System.Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.")>]
static member IsApplicationTargeting45 : unit -> bool
[<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.")>]
static member IsApplicationTargeting45 : unit -> bool
Public Shared Function IsApplicationTargeting45 () As Boolean
傳回
true
WebSocket如果的目標是 .NET Framework 4.5,則為 ,否則為 false
。
- 屬性