A Sandcastle Documented Class Library

# ServerController RegisterServer Method

POST /Server/ Register a server with the specified name.

Namespace: Dundas.BI.WebApi.Controllers
Assembly: Dundas.BI.WebApi (in Dundas.BI.WebApi.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    [HttpPostAttribute]
    [ActionNameAttribute("Index")]
    public IActionResult RegisterServer(
    	[FromBodyAttribute] string name,
    	Guid? sessionId = null
    )

    <HttpPostAttribute>
    <ActionNameAttribute("Index")>
    Public Function RegisterServer (
    	<FromBodyAttribute> name As String,
    	Optional sessionId As Guid? = Nothing
    ) As IActionResult

    public:
    [HttpPostAttribute]
    [ActionNameAttribute(L"Index")]
    IActionResult^ RegisterServer(
    	[FromBodyAttribute] String^ name,
    	Nullable<Guid> sessionId = nullptr
    )

    [<HttpPostAttribute>]
    [<ActionNameAttribute("Index")>]
    member RegisterServer :
            [<FromBodyAttribute>] name : string *
            ?sessionId : Nullable<Guid>
    (* Defaults:
            let _sessionId = defaultArg sessionId null
    *)
    -> IActionResult

#### Parameters

name
  Type: System
  String
  The name of the server to be registered.
sessionId (Optional)
  Type: System
  Nullable
  Guid
  ID of the current session.

#### Return Value

Type: IActionResult
if the specified server name is already registered; otherwise,
.
See Also

#### Reference

ServerController Class
Dundas.BI.WebApi.Controllers Namespace