CodePackageActivationContext.GetDataPackage(String) Method

Definition

Caution

Use GetDataPackageObject method.

Retrieves the DataPackageDescription by name.

This method is obsolete. Use GetDataPackageObject(String).

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

Parameters

packageName
String

The name of the package to find

Returns

Returns DataPackageDescription.

Attributes

Exceptions

The packageName was not found in the service manifest.

Applies to