SqlGuid.Explicit Operator

Definition

Converts to and from a SqlGuid instance.

Overloads

Explicit(SqlBinary to SqlGuid)

Converts the SqlBinary parameter to SqlGuid.

Explicit(SqlGuid to Guid)

Converts the supplied SqlGuid parameter to Guid.

Explicit(SqlString to SqlGuid)

Converts the specified SqlString structure to SqlGuid.

Explicit(SqlBinary to SqlGuid)

Source:
SQLGuid.cs
Source:
SQLGuid.cs
Source:
SQLGuid.cs

Converts the SqlBinary parameter to SqlGuid.

C#
public static explicit operator System.Data.SqlTypes.SqlGuid(System.Data.SqlTypes.SqlBinary x);

Parameters

x
SqlBinary

A SqlBinary object.

Returns

A new SqlGuid whose Value is equal to the Value of the SqlBinary parameter.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

Explicit(SqlGuid to Guid)

Source:
SQLGuid.cs
Source:
SQLGuid.cs
Source:
SQLGuid.cs

Converts the supplied SqlGuid parameter to Guid.

C#
public static explicit operator Guid(System.Data.SqlTypes.SqlGuid x);

Parameters

x
SqlGuid

A SqlGuid structure.

Returns

A new Guid equal to the Value of the SqlGuid.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

Explicit(SqlString to SqlGuid)

Source:
SQLGuid.cs
Source:
SQLGuid.cs
Source:
SQLGuid.cs

Converts the specified SqlString structure to SqlGuid.

C#
public static explicit operator System.Data.SqlTypes.SqlGuid(System.Data.SqlTypes.SqlString x);

Parameters

x
SqlString

A SqlString object.

Returns

A SqlGuid whose Value equals the value represented by the SqlString parameter.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1