Partager via


Microsoft.VisualStudio.SharePoint.Packages Namespace

The Microsoft.VisualStudio.SharePoint.Packages namespace contains types that you can use to access the package definition in a SharePoint project.

Interfaces

IApplicationResource

Represents an application resource file.

IApplicationResourceCollection

Represents a collection of application resource files.

IAssembly

Represents an assembly.

IAssemblyCollection

Represents a collection of assemblies in the package.

IBindingRedirect

Represents an assembly binding redirection.

IBindingRedirectCollection

Represents a collection of package assembly binding redirections.

IClassResource

Represents a class resource file in the package.

IClassResourceCollection

Represents a collection of package class resource files.

ICodeAccessSecurityAssembly

Represents an assembly in a code access security (CAS) policy.

ICodeAccessSecurityAssemblyCollection

Represents a collection of assemblies associated with a code access security (CAS) policy.

ICustomAssembly

Represents an assembly included within a package.

ICustomSolutionActivationDependency

Represents a custom solution activation dependency in the package.

IDwpFile

Represents a Web part (.dwp) file in the package.

IDwpFileCollection

Represents a collection of Web part (.dwp) files in the package.

IFeatureManifestReference

Represents a feature manifest file in the package.

IFeatureManifestReferenceCollection

Represents a collection of feature manifest files in the package.

IPackage

Represents the definition of a package within the SharePoint project system.

IPackageManifest

Represents a SharePoint package manifest.

IPermissionElement

Represents a code access security (CAS) permission.

IPermissionElementCollection

Represents a collection of code access security (CAS) policy permissions.

IPolicyItem

Represents a code access security (CAS) policy item.

IPolicyItemCollection

Represents a collection of code access security (CAS) policy items.

IProjectOutputAssembly

Represents a project output assembly included in a package.

IResource

Represents a resource file in the package.

IResourceCollection

Represents a collection of resource files in the package.

IRootFile

Represents a root file in the package.

IRootFileCollection

Represents a collection of root files in a package.

ISafeControl

Represents a safe control in the package.

ISafeControlCollection

Represents a collection of safe controls.

ISiteDefinitionManifest

Represents a site definition manifest file.

ISiteDefinitionManifestCollection

Represents a collection of site definition manifests.

ISolutionActivationDependency

Represents an activation dependency of a SharePoint package.

ISolutionActivationDependencyCollection

Represents a collection of packages upon which the activation of another package depends.

ITemplateFile

Represents a template file in the package.

ITemplateFileCollection

Represents a collection of template files in the package.

IWebTempFile

Represents a Web template file in the package.

IWebTempFileCollection

Represents a collection of Web template files in the package.

Enums

ApplicationResourceType

Specifies where an application resource file is deployed on the server.

DeploymentServerType

Specifies the type of server to host the package.

DeploymentTarget

Specifies where an assembly is deployed on the SharePoint server.

ResetWebServerModeOnUpgrade

Specifies how the web server is restarted after an upgrade.

Remarks

The main type in this namespace is the IPackage interface. An IPackage object represents a package definition in a SharePoint project, including the package manifest. To get an IPackage object, first use the Microsoft.VisualStudio.SharePoint.ISharePointProject.Package property to get an ISharePointProjectPackage object. Then, use the Microsoft.VisualStudio.SharePoint.ISharePointProjectPackage.Model property to get an IPackage object.