SocketTools .NET Edition

WebStorage.UnregisterId Method 

Unregister a previously registered application identifier.

[Visual Basic]
Public Function UnregisterId( _
   ByVal appId As String _
) As Boolean
[C#]
public bool UnregisterId(
   string appId
);

Parameters

appId
A string which specifies the application ID to be deleted. If the application ID is a zero-length string or contains illegal characters, the method will fail.

Return Value

This method returns a boolean value. If the application ID was deleted, it will return true, otherwise it will return false.

Remarks

The UnregisterId method deletes the internal storage identifier associated with the application ID and revokes all access tokens that were granted for the application. This operation is immediate and permanent.

Exercise caution when using this method. This will permanently delete all objects that were stored for the specified application. Calling UnregisterId and then RegisterId again using the same ID will force the system to create new access tokens for your application. You will not be able to regain access to the objects that were previously stored using that ID.

This method cannot be used to unregister the default storage application identifier SocketTools.Storage.Default. If this ID is specified, the method will fail with an error indicating that the ID is invalid.

See Also

WebStorage Class | SocketTools Namespace