[This is preliminary documentation and is subject to change.]
Namespace: NFXAssembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
public static byte AsByte(
this string val,
byte dflt = 0
)
public static byte AsByte(
this string val,
byte dflt = 0
)
<ExtensionAttribute>
Public Shared Function AsByte (
val As String,
Optional dflt As Byte = 0
) As Byte
<ExtensionAttribute>
Public Shared Function AsByte (
val As String,
Optional dflt As Byte = 0
) As Byte
public:
[ExtensionAttribute]
static unsigned char AsByte(
String^ val,
unsigned char dflt = 0
)
public:
[ExtensionAttribute]
static unsigned char AsByte(
String^ val,
unsigned char dflt = 0
)
static member AsByte :
val : string *
?dflt : byte
(* Defaults:
let _dflt = defaultArg dflt 0
*)
-> byte
static member AsByte :
val : string *
?dflt : byte
(* Defaults:
let _dflt = defaultArg dflt 0
*)
-> byte
Return Value
Type:
ByteUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
String. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).