你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Optional.IsDefined Method

Definition

Overloads

IsDefined(Object)

Source:
Optional.cs
public static bool IsDefined(object value);
static member IsDefined : obj -> bool
Public Shared Function IsDefined (value As Object) As Boolean

Parameters

value
Object

Returns

Applies to

IsDefined(String)

Source:
Optional.cs
public static bool IsDefined(string value);
static member IsDefined : string -> bool
Public Shared Function IsDefined (value As String) As Boolean

Parameters

value
String

Returns

Applies to

IsDefined(JsonElement)

Source:
Optional.cs
public static bool IsDefined(System.Text.Json.JsonElement value);
static member IsDefined : System.Text.Json.JsonElement -> bool
Public Shared Function IsDefined (value As JsonElement) As Boolean

Parameters

value
JsonElement

Returns

Applies to

IsDefined<T>(Nullable<T>)

Source:
Optional.cs
public static bool IsDefined<T>(T? value) where T : struct;
static member IsDefined : Nullable<'T (requires 'T : struct)> -> bool (requires 'T : struct)
Public Shared Function IsDefined(Of T As Structure) (value As Nullable(Of T)) As Boolean

Type Parameters

T

Parameters

value
Nullable<T>

Returns

Applies to