CreatePackageDependencyOptions.LifetimeArtifact 属性

定义

如果 LifetimeArtifactKind 属性设置为 PackageDependencyLifetimeArtifactKind.FilePath 或 PackageDependencyLifetimeArtifactKind.RegistryKey,则获取或设置用于定义包依赖项生存期的项目的名称。

public:
 property Platform::String ^ LifetimeArtifact { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring LifetimeArtifact();

void LifetimeArtifact(winrt::hstring value);
public string LifetimeArtifact { get; set; }
var string = createPackageDependencyOptions.lifetimeArtifact;
createPackageDependencyOptions.lifetimeArtifact = string;
Public Property LifetimeArtifact As String

属性值

String

Platform::String

winrt::hstring

注解

如果 LifetimeArtifactKind 属性设置为 PackageDependencyLifetimeArtifactKind.Process,请不要使用此属性。

适用于

另请参阅