SqlFunctions.DataLength 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| DataLength(Byte[]) |
傳回用來代表任何運算式的位元組數目。 |
| DataLength(Nullable<Boolean>) |
傳回用來代表任何運算式的位元組數目。 |
| DataLength(Nullable<DateTime>) |
傳回用來代表任何運算式的位元組數目。 |
| DataLength(Nullable<DateTimeOffset>) |
傳回用來代表任何運算式的位元組數目。 |
| DataLength(Nullable<Decimal>) |
傳回用來代表任何運算式的位元組數目。 |
| DataLength(Nullable<Double>) |
傳回用來代表任何運算式的位元組數目。 |
| DataLength(Nullable<Guid>) |
傳回用來代表任何運算式的位元組數目。 |
| DataLength(Nullable<TimeSpan>) |
傳回用來代表任何運算式的位元組數目。 |
| DataLength(String) |
傳回用來代表任何運算式的位元組數目。 |
DataLength(Byte[])
傳回用來代表任何運算式的位元組數目。
[System.Data.Entity.DbFunction("SqlServer", "DATALENGTH")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="arg")]
public static Nullable<int> DataLength(byte[] arg);
static member DataLength : byte[] -> Nullable<int>
Public Shared Function DataLength (arg As Byte()) As Nullable(Of Integer)
參數
- arg
- Byte[]
要檢查其長度的值。
傳回
輸入值的位元組數目。
- 屬性
適用於
DataLength(Nullable<Boolean>)
傳回用來代表任何運算式的位元組數目。
[System.Data.Entity.DbFunction("SqlServer", "DATALENGTH")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="arg")]
public static Nullable<int> DataLength(Nullable<bool> arg);
static member DataLength : Nullable<bool> -> Nullable<int>
Public Shared Function DataLength (arg As Nullable(Of Boolean)) As Nullable(Of Integer)
參數
傳回
輸入值的位元組數目。
- 屬性
適用於
DataLength(Nullable<DateTime>)
傳回用來代表任何運算式的位元組數目。
[System.Data.Entity.DbFunction("SqlServer", "DATALENGTH")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="arg")]
public static Nullable<int> DataLength(Nullable<DateTime> arg);
static member DataLength : Nullable<DateTime> -> Nullable<int>
Public Shared Function DataLength (arg As Nullable(Of DateTime)) As Nullable(Of Integer)
參數
傳回
輸入值的位元組數目。
- 屬性
適用於
DataLength(Nullable<DateTimeOffset>)
傳回用來代表任何運算式的位元組數目。
[System.Data.Entity.DbFunction("SqlServer", "DATALENGTH")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="arg")]
public static Nullable<int> DataLength(Nullable<DateTimeOffset> arg);
static member DataLength : Nullable<DateTimeOffset> -> Nullable<int>
Public Shared Function DataLength (arg As Nullable(Of DateTimeOffset)) As Nullable(Of Integer)
參數
- arg
- Nullable<DateTimeOffset>
要檢查其資料長度的值。
傳回
輸入值的位元組數目。
- 屬性
適用於
DataLength(Nullable<Decimal>)
傳回用來代表任何運算式的位元組數目。
[System.Data.Entity.DbFunction("SqlServer", "DATALENGTH")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="arg")]
public static Nullable<int> DataLength(Nullable<decimal> arg);
static member DataLength : Nullable<decimal> -> Nullable<int>
Public Shared Function DataLength (arg As Nullable(Of Decimal)) As Nullable(Of Integer)
參數
傳回
輸入值的位元組數目。
- 屬性
適用於
DataLength(Nullable<Double>)
傳回用來代表任何運算式的位元組數目。
[System.Data.Entity.DbFunction("SqlServer", "DATALENGTH")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="arg")]
public static Nullable<int> DataLength(Nullable<double> arg);
static member DataLength : Nullable<double> -> Nullable<int>
Public Shared Function DataLength (arg As Nullable(Of Double)) As Nullable(Of Integer)
參數
傳回
輸入值的位元組數目。
- 屬性
適用於
DataLength(Nullable<Guid>)
傳回用來代表任何運算式的位元組數目。
[System.Data.Entity.DbFunction("SqlServer", "DATALENGTH")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="arg")]
public static Nullable<int> DataLength(Nullable<Guid> arg);
static member DataLength : Nullable<Guid> -> Nullable<int>
Public Shared Function DataLength (arg As Nullable(Of Guid)) As Nullable(Of Integer)
參數
傳回
輸入值的位元組數目。
- 屬性
適用於
DataLength(Nullable<TimeSpan>)
傳回用來代表任何運算式的位元組數目。
[System.Data.Entity.DbFunction("SqlServer", "DATALENGTH")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="arg")]
public static Nullable<int> DataLength(Nullable<TimeSpan> arg);
static member DataLength : Nullable<TimeSpan> -> Nullable<int>
Public Shared Function DataLength (arg As Nullable(Of TimeSpan)) As Nullable(Of Integer)
參數
傳回
輸入值的位元組數目。
- 屬性
適用於
DataLength(String)
傳回用來代表任何運算式的位元組數目。
[System.Data.Entity.DbFunction("SqlServer", "DATALENGTH")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="arg")]
public static Nullable<int> DataLength(string arg);
static member DataLength : string -> Nullable<int>
Public Shared Function DataLength (arg As String) As Nullable(Of Integer)
參數
- arg
- String
要檢查其資料長度的值。
傳回
輸入值的位元組數目。
- 屬性