共用方式為


SqlGuid.Explicit 運算子

定義

來回轉換 SqlGuid 執行個體。

多載

Explicit(SqlBinary to SqlGuid)

SqlBinary 參數轉換成 SqlGuid

Explicit(SqlGuid to Guid)

將提供的 SqlGuid 參數轉換成 Guid

Explicit(SqlString to SqlGuid)

將指定的 SqlString 結構轉換成 SqlGuid

Explicit(SqlBinary to SqlGuid)

來源:
SQLGuid.cs
來源:
SQLGuid.cs
來源:
SQLGuid.cs

SqlBinary 參數轉換成 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 物件。

傳回

新的 SqlGuid,其 Value 等於 Value 參數的 SqlBinary

另請參閱

適用於

Explicit(SqlGuid to Guid)

來源:
SQLGuid.cs
來源:
SQLGuid.cs
來源:
SQLGuid.cs

將提供的 SqlGuid 參數轉換成 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 結構。

傳回

新的 Guid,等於 ValueSqlGuid

另請參閱

適用於

Explicit(SqlString to SqlGuid)

來源:
SQLGuid.cs
來源:
SQLGuid.cs
來源:
SQLGuid.cs

將指定的 SqlString 結構轉換成 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 物件。

傳回

SqlGuid,其 Value 等於 SqlString 參數表示的值。

另請參閱

適用於