语言

OptionalProperty.IsDefined 方法

定义

重载

IsDefined(Object)

public:
 static bool IsDefined(System::Object ^ value);
public static bool IsDefined(object value);
static member IsDefined : obj -> bool
Public Shared Function IsDefined (value As Object) As Boolean

参数

value
Object

返回

适用于

IsDefined(String)

public:
 static bool IsDefined(System::String ^ value);
public static bool IsDefined(string value);
static member IsDefined : string -> bool
Public Shared Function IsDefined (value As String) As Boolean

参数

value
String

返回

适用于

IsDefined(JsonElement)

public:
 static bool IsDefined(System::Text::Json::JsonElement value);
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

参数

value
JsonElement

返回

适用于

IsDefined<T>(Nullable<T>)

public:
generic <typename T>
 where T : value class static bool IsDefined(Nullable<T> value);
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

类型参数

T

参数

value
Nullable<T>

返回

适用于