Export (0) Print
Expand All

Deployment Class

Silverlight

Provides application part and localization information in the application manifest when deploying a Silverlight-based application.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)

public sealed class Deployment : DependencyObject
<Deployment
  xmlns="http://schemas.microsoft.com/client/2007/deployment" ... >
  ...
</Deployment>

The Deployment type exposes the following members.

  NameDescription
Public methodSupported by Silverlight for Windows PhoneDeploymentInfrastructure. Initializes a new instance of the Deployment class.
Top

  NameDescription
Public propertyStatic memberSupported by Silverlight for Windows PhoneCurrentGets the current Deployment object.
Public propertySupported by Silverlight for Windows PhoneDispatcherGets the Dispatcher this object is associated with. (Inherited from DependencyObject.)
Public propertySupported by Silverlight for Windows PhoneEntryPointAssemblyGets a string name that identifies which part in the Deployment is the entry point assembly.
Public propertySupported by Silverlight for Windows PhoneEntryPointTypeGets a string that identifies the namespace and type name of the class that contains the Application entry point for your application.
Public propertyExternalCallersFromCrossDomainGets a value that indicates the level of access that cross-domain callers have to the Silverlight-based application in this deployment.
Public propertySupported by Silverlight for Windows PhoneExternalPartsGets a collection of ExternalPart instances that represent the external assemblies required by the application.
Public propertyInBrowserSettingsGets an object that contains information about the application that is used for in-browser support.
Public propertyOutOfBrowserSettingsGets an object that contains information about the application that is used for out-of-browser support.
Public propertySupported by Silverlight for Windows PhonePartsGets a collection of assembly parts that are included in the deployment.
Public propertySupported by Silverlight for Windows PhoneRuntimeVersionGets the Silverlight runtime version that this deployment supports.
Top

  NameDescription
Public methodSupported by Silverlight for Windows PhoneCheckAccessDetermines whether the calling thread has access to this object. (Inherited from DependencyObject.)
Public methodSupported by Silverlight for Windows PhoneClearValueClears the local value of a dependency property. (Inherited from DependencyObject.)
Public methodSupported by Silverlight for Windows PhoneEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows PhoneFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneGetAnimationBaseValueReturns any base value established for a Silverlight dependency property, which would apply in cases where an animation is not active. (Inherited from DependencyObject.)
Public methodStatic memberGetAppIdForUriInfrastructure. Security Critical. Gets a value that represents a unique ID for an out-of-browser application.
Public methodSupported by Silverlight for Windows PhoneGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneGetValueReturns the current effective value of a dependency property from a DependencyObject. (Inherited from DependencyObject.)
Protected methodSupported by Silverlight for Windows PhoneMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneReadLocalValueReturns the local value of a dependency property, if a local value is set. (Inherited from DependencyObject.)
Public methodStatic memberRegisterAssemblyInfrastructure. Security Critical. Enables a native Silverlight host, such as Expression Blend or Visual Studio, to instruct Silverlight to register an assembly that the Silverlight host has separately loaded into the host-managed application domain in which a Silverlight application is running.
Public methodStatic memberSetCurrentApplicationInfrastructure. Security Critical. Allows a native host of the Silverlight plug-in to specify the current Application object of the running Silverlight application.
Public methodSupported by Silverlight for Windows PhoneSetValueSets the local value of a dependency property on a DependencyObject. (Inherited from DependencyObject.)
Public methodSupported by Silverlight for Windows PhoneToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public fieldStatic memberSupported by Silverlight for Windows PhoneEntryPointAssemblyPropertyIdentifies the EntryPointAssembly dependency property.
Public fieldStatic memberSupported by Silverlight for Windows PhoneEntryPointTypePropertyIdentifies the EntryPointType dependency property.
Public fieldStatic memberExternalCallersFromCrossDomainPropertyIdentifies the ExternalCallersFromCrossDomain dependency property.
Public fieldStatic memberSupported by Silverlight for Windows PhoneExternalPartsPropertyIdentifies the ExternalParts dependency property.
Public fieldStatic memberInBrowserSettingsPropertyIdentifies the InBrowserSettings dependency property.
Public fieldStatic memberOutOfBrowserSettingsPropertyIdentifies the OutOfBrowserSettings dependency property.
Public fieldStatic memberSupported by Silverlight for Windows PhonePartsPropertyIdentifies the Parts dependency property.
Public fieldStatic memberSupported by Silverlight for Windows PhoneRuntimeVersionPropertyIdentifies the RuntimeVersion dependency property.
Top

The markup for application manifests is technically XAML. However the various elements for manifests are not included in the typical default Silverlight XML namespace (http://schemas.microsoft.com/winfx/2006/xaml/presentation). Instead, the manifest elements are mapped to the http://schemas.microsoft.com/client/2007/deployment XML namespace.

Generally, you do not have to change the XAML in an application manifest if the project specifies that each build should generate the application manifest. In contrast to the very basic usage shown in the XAML Object Element Usage section above, a typical Deployment would also specify additional attributes, and might also contain property elements for Parts, ExternalParts, and OutOfBrowserSettings.

You can retrieve a Deployment object in managed code through the Current property. This gives you read-only access to the deployment settings. To set deployment values, you must modify the AppManifest.xaml file deployed with your application package.

In Visual Studio, the AppManifest.xaml file is generated by the build based on information that you specify in the project designer. For more information, see Silverlight Page, Project Designer.

By default, the build generates the AppManifest.xaml from a template in the Properties folder named AppManifest.xml. You can specify values in the manifest template or you can disable manifest generation to provide your own AppManifest.xaml file. This is useful, for example, to specify non-default values for the RuntimeVersion and ExternalCallersFromCrossDomain properties.

NoteNote:

You should not specify out-of-browser settings in the manifest template if you specify the same values by using the project designer or the OutOfBrowserSettings.xml file. For more information, see How to: Configure an Application for Out-of-Browser Support.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft