InPlaceHostingManager.AssertApplicationRequirements Method ()


Determines whether the ClickOnce application has the appropriate permissions and platform dependencies to run on the local computer.

Namespace:   System.Deployment.Application
Assembly:  System.Deployment (in System.Deployment.dll)

member AssertApplicationRequirements : unit -> unit

Exception Condition

Raised if this method is called before the GetManifestAsync method.

You must call AssertApplicationRequirements after GetManifestAsync returns successfully. You must not call DownloadApplicationAsync unless you call AssertApplicationRequirements, and it returns without error.

The following code example demonstrates the use of AssertApplicationRequirements, which it calls in the body of a successful GetManifestCompleted event handler.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top