共用方式為


CodePackageActivationContext.GetConfigurationPackage(String) Method

Definition

Caution

Use GetConfigurationPackageObject method.

Retrieves the ConfigurationPackageDescription object by name.

This method is obsolete. Use GetConfigurationPackageObject(String).

[System.Obsolete("Use GetConfigurationPackageObject method.")]
public System.Fabric.Description.ConfigurationPackageDescription GetConfigurationPackage (string packageName);
[<System.Obsolete("Use GetConfigurationPackageObject method.")>]
member this.GetConfigurationPackage : string -> System.Fabric.Description.ConfigurationPackageDescription
Public Function GetConfigurationPackage (packageName As String) As ConfigurationPackageDescription

Parameters

packageName
String

The name of the package to find

Returns

Returns ConfigurationPackageDescription.

Attributes

Exceptions

The packageName was not found in the service manifest.

Applies to