Freigeben über


ApplicationManifest.HostInBrowser Property

Definition

Gets or sets a value that indicates whether the application will run in IE using WPF's XBAP application model.

public:
 property bool HostInBrowser { bool get(); void set(bool value); };
public bool HostInBrowser { get; set; }
public bool HostInBrowser { [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] get; [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] set; }
member this.HostInBrowser : bool with get, set
[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
[<set: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
member this.HostInBrowser : bool with get, set
Public Property HostInBrowser As Boolean

Property Value

true if the application will run in IE using WPF's XBAP application model; otherwise, false.

Attributes

Remarks

For project types other than WPF Web Browser Applications, you should set HostInBrowser to False (the default value).

When you deploy a WPF Web Browser Application, you must set the HostInBrowser property to True. This causes the <hostInBrowser> tag to be added to the generated application manifest. This tag enables ClickOnce to deploy projects for browser-hosted applications, which contain .xbap files.

You will also have to make the application available only online by setting Install to False. If you do not do this, you will receive MSBuild Error MSB3116.

Applies to

See also