Loupe - Log - Monitor - Resolve
Gibraltar.Monitor Namespace / LocalRepository Class / Remove Method / Remove(Guid) Method
The unique Id of the session to be removed

In This Topic
    Remove(Guid) Method
    In This Topic
    Remove a session from the repository and all folders by its Id
    Syntax
    'Declaration
     
    
    Public Overloads Function Remove( _
       ByVal sessionId As Guid _
    ) As Boolean
    public bool Remove( 
       Guid sessionId
    )

    Parameters

    sessionId
    The unique Id of the session to be removed

    Return Value

    True if a session existed and was removed, false otherwise.
    Remarks
    If no session is found with the specified Id then no exception is thrown. Instead, false is returned. If a session is found and removed True is returned. If there is a problem removing the specified session (and it exists) then an exception is thrown. The session will be removed from all folders that may reference it as well as user history and preferences.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also