SqlGuid.Explicit 運算子

定義

來回轉換 SqlGuid 執行個體。Converts to and from a SqlGuid instance.

多載

Explicit(SqlBinary to SqlGuid)

SqlBinary 參數轉換成 SqlGuidConverts the SqlBinary parameter to SqlGuid.

Explicit(SqlGuid to Guid)

將提供的 SqlGuid 參數轉換成 GuidConverts the supplied SqlGuid parameter to Guid.

Explicit(SqlString to SqlGuid)

將指定的 SqlString 結構轉換成 SqlGuidConverts the specified SqlString structure to SqlGuid.

Explicit(SqlBinary to SqlGuid)

SqlBinary 參數轉換成 SqlGuidConverts the SqlBinary parameter to SqlGuid.

public:
 static explicit operator System::Data::SqlTypes::SqlGuid(System::Data::SqlTypes::SqlBinary x);
public static explicit operator System.Data.SqlTypes.SqlGuid (System.Data.SqlTypes.SqlBinary x);
static member op_Explicit : System.Data.SqlTypes.SqlBinary -> System.Data.SqlTypes.SqlGuid
Public Shared Narrowing Operator CType (x As SqlBinary) As SqlGuid

參數

x
SqlBinary

SqlBinary 物件。A SqlBinary object.

傳回

SqlGuid

新的 SqlGuid,其 Value 等於 Value 參數的 SqlBinaryA new SqlGuid whose Value is equal to the Value of the SqlBinary parameter.

另請參閱

適用於

Explicit(SqlGuid to Guid)

將提供的 SqlGuid 參數轉換成 GuidConverts the supplied SqlGuid parameter to Guid.

public:
 static explicit operator Guid(System::Data::SqlTypes::SqlGuid x);
public static explicit operator Guid (System.Data.SqlTypes.SqlGuid x);
static member op_Explicit : System.Data.SqlTypes.SqlGuid -> Guid
Public Shared Narrowing Operator CType (x As SqlGuid) As Guid

參數

x
SqlGuid

SqlGuid 結構。A SqlGuid structure.

傳回

Guid

新的 Guid,等於 ValueSqlGuidA new Guid equal to the Value of the SqlGuid.

另請參閱

適用於

Explicit(SqlString to SqlGuid)

將指定的 SqlString 結構轉換成 SqlGuidConverts the specified SqlString structure to SqlGuid.

public:
 static explicit operator System::Data::SqlTypes::SqlGuid(System::Data::SqlTypes::SqlString x);
public static explicit operator System.Data.SqlTypes.SqlGuid (System.Data.SqlTypes.SqlString x);
static member op_Explicit : System.Data.SqlTypes.SqlString -> System.Data.SqlTypes.SqlGuid
Public Shared Narrowing Operator CType (x As SqlString) As SqlGuid

參數

x
SqlString

SqlString 物件。A SqlString object.

傳回

SqlGuid

SqlGuid,其 Value 等於 SqlString 參數表示的值。A SqlGuid whose Value equals the value represented by the SqlString parameter.

另請參閱

適用於