DeleteApplication(string) Method
The DeleteApplication method of the Application class deletes the enterprise application definition and all associated credentials.
Parameters
strApplicationName The name of the enterprise application definition. This is not the enterprise application definition friendly name. If strApplicationName does not exist in the single sign-on database, a SingleSignonException is thrown. The maximum allowed number of characters is 128.
Exceptions
| Exception Type | Condition |
|---|---|
| SingleSignonException | Method fails or strApplicationName does not exist in the single sign-on database. |
Remarks
Only users who are members of the single sign-on administrator account or members of the enterprise application definition manager account can delete application definitions.
The result of each call to the DeleteApplication method is audited and stored in the single sign-on database. The ServiceAction enumeration recorded is DeleteApplication.
Deleting an enterprise application definition also deletes all associated credentials for the application definition.
Example
The following code example shows how to use the DeleteApplication method.
Requirements
Platforms: Microsoft Windows Server 2003
Security: Code Access Security