|
ApiExtensionsGetClientIp Method |
Get the IP of the client of the request
Namespace: DrawerBackup.Native.Server.WebSAssembly: DrawerBackup.Native (in DrawerBackup.Native.dll) Version: 0.0.1.1 (0.0.1.1)
Syntaxpublic static string GetClientIp(
this ApiController api
)
<ExtensionAttribute>
Public Shared Function GetClientIp (
api As ApiController
) As String
public:
[ExtensionAttribute]
static String^ GetClientIp(
ApiController^ api
)
[<ExtensionAttribute>]
static member GetClientIp :
api : ApiController -> string
Parameters
- api
- Type: ApiController
Return Value
Type:
StringUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
ApiController. 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).
See Also