[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[] AsByteArray(
this string val,
byte[] dflt = null
)
public static byte[] AsByteArray(
this string val,
byte[] dflt = null
)
<ExtensionAttribute>
Public Shared Function AsByteArray (
val As String,
Optional dflt As Byte() = Nothing
) As Byte()
<ExtensionAttribute>
Public Shared Function AsByteArray (
val As String,
Optional dflt As Byte() = Nothing
) As Byte()
public:
[ExtensionAttribute]
static array<unsigned char>^ AsByteArray(
String^ val,
array<unsigned char>^ dflt = nullptr
)
public:
[ExtensionAttribute]
static array<unsigned char>^ AsByteArray(
String^ val,
array<unsigned char>^ dflt = nullptr
)
static member AsByteArray :
val : string *
?dflt : byte[]
(* Defaults:
let _dflt = defaultArg dflt null
*)
-> byte[]
static member AsByteArray :
val : string *
?dflt : byte[]
(* Defaults:
let _dflt = defaultArg dflt null
*)
-> byte[]
Return Value
Type:
Byte Usage 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).