This example shows what a call to VSACloseConnection looks like. Refer to VsaRpcl Example to see the constant declarations and to see this code in a form you can run with minor modifications.
// Close the connection
static void RpcSampleCloseConnection(long VSAId)
{
RpcTryExcept
{
VSACloseConnection(VSAId);
}
RpcExcept(1)
{
LastErrorCode = RpcExceptionCode();
}
RpcEndExcept;
}