[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 ushort AsUShort(
this string val,
ushort dflt = 0
)
public static ushort AsUShort(
this string val,
ushort dflt = 0
)
<ExtensionAttribute>
Public Shared Function AsUShort (
val As String,
Optional dflt As UShort = 0
) As UShort
<ExtensionAttribute>
Public Shared Function AsUShort (
val As String,
Optional dflt As UShort = 0
) As UShort
public:
[ExtensionAttribute]
static unsigned short AsUShort(
String^ val,
unsigned short dflt = 0
)
public:
[ExtensionAttribute]
static unsigned short AsUShort(
String^ val,
unsigned short dflt = 0
)
static member AsUShort :
val : string *
?dflt : uint16
(* Defaults:
let _dflt = defaultArg dflt 0
*)
-> uint16
static member AsUShort :
val : string *
?dflt : uint16
(* Defaults:
let _dflt = defaultArg dflt 0
*)
-> uint16
Return Value
Type:
UInt16Usage 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).