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 实例是否面向 .NET Framework 4.5。
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
。
- 属性