共用方式為


ICodePackageActivationContext.GetConfigurationPackageObject(String) Method

Definition

Returns the ConfigurationPackage object from Service Package that matches the desired package name.

public System.Fabric.ConfigurationPackage GetConfigurationPackageObject (string packageName);
abstract member GetConfigurationPackageObject : string -> System.Fabric.ConfigurationPackage
Public Function GetConfigurationPackageObject (packageName As String) As ConfigurationPackage

Parameters

packageName
String

The name of the configuration package.

Returns

The ConfigurationPackage object from Service Package that matches the desired package name.

Remarks

Throws KeyNotFoundException exception if the package is not found.

Applies to