語言

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>

傳回

適用於