OptionalProperty.ToNullable 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ToNullable<T>(OptionalProperty<Nullable<T>>)
public:
generic <typename T>
where T : value class static Nullable<T> ToNullable(System::Net::ClientModel::Internal::OptionalProperty<Nullable<T>> optional);
public static T? ToNullable<T>(System.Net.ClientModel.Internal.OptionalProperty<T?> optional) where T : struct;
static member ToNullable : System.Net.ClientModel.Internal.OptionalProperty<Nullable<'T>> -> Nullable<'T (requires 'T : struct)> (requires 'T : struct)
Public Shared Function ToNullable(Of T As Structure) (optional As OptionalProperty(Of Nullable(Of T))) As Nullable(Of T)
類型參數
- T
參數
- optional
- OptionalProperty<Nullable<T>>
傳回
適用於
ToNullable<T>(OptionalProperty<T>)
public:
generic <typename T>
where T : value class static Nullable<T> ToNullable(System::Net::ClientModel::Internal::OptionalProperty<T> optional);
public static T? ToNullable<T>(System.Net.ClientModel.Internal.OptionalProperty<T> optional) where T : struct;
static member ToNullable : System.Net.ClientModel.Internal.OptionalProperty<'T (requires 'T : struct)> -> Nullable<'T (requires 'T : struct)> (requires 'T : struct)
Public Shared Function ToNullable(Of T As Structure) (optional As OptionalProperty(Of T)) As Nullable(Of T)
類型參數
- T
參數
- optional
- OptionalProperty<T>