Assembly: Microsoft.ComponentStudio.ComponentPlatformInterface (in microsoft.componentstudio.componentplatforminterface.dll)
Usage
Visual Basic |
---|
Dim id As Identity Dim createOption As CreateOptions Dim returnValue As PackageAction Dim packageActionCollection1 As PackageActionCollection returnValue = packageActionCollection1.Create(id, createOption) |
Syntax
Visual Basic |
---|
Overloads Public Function Create( _ ByVal id As Identity, _ ByVal createOption As CreateOptions _ ) As PackageAction |
C# |
---|
public PackageAction Create( Identity id, CreateOptions createOption ); |
C++ |
---|
public: PackageAction^ Create( Identity^ id, CreateOptions createOption ); |
J# |
---|
public PackageAction Create( Identity id, CreateOptions createOption ); |
JScript |
---|
public function Create( id : Identity, createOption : CreateOptions ) : PackageAction; |
Parameters
- id
-
Identity of a package.
- createOption
-
Enumeration element that determines whether to return the existing package action or throw an exception if one already exists.
Return Value
An instatance of PackageAction.Remarks
ArgumentNullException is thrown if id is null.
InvalidOperationException is thrown if there is already a package action for the package specified by id in the answer file, and createOption is FailIfExists.
Thread Safety
Any public static (Shared in Visual
Basic) members of this type are thread safe. Any instance members
are not guaranteed to be thread safe.