Set-SCSPFVMRoleGalleryItem
Galerideki bir öğenin yayımlama durumunu ayarlar.
Syntax
Set-SCSPFVMRoleGalleryItem
-VmRoleGalleryItem <VMRoleGalleryItem>
-PublishingStatus <String>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-SCSPFVMRoleGalleryItem
-VmRoleGalleryItem <VMRoleGalleryItem>
-Package <Stream>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Set-SCSPFVMRoleGalleryItem cmdlet'i galerideki bir öğenin yayımlama durumunu yayımlayacak veya yayımdan kaldıracak şekilde ayarlar.
Örnekler
Örnek 1: Yayımlayacak galeri öğesini ayarlama
PS C:\>Set-SCSPFVmRoleGalleryItem -VmRoleGalleryItem $GalleryItem -PublishingStatus "published"
Bu komut galerideki bir öğenin yayımlama durumunu "yayımlandı" olarak ayarlar.
Parametreler
-Confirm
Cmdlet'i çalıştırmadan önce sizden onay ister.
Type: | System.Management.Automation.SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Package
Galeri öğesinin kaynak paketini içeren System.IO.MemoryStream türünde bir nesne belirtir.
Type: | System.IO.Stream |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PublishingStatus
Yayımlanmış veya yayımlanmamış olarak belirtir.
Type: | System.String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VmRoleGalleryItem
Yayımlama durumunun ayarlanacağı galeri öğesini belirtir.
Type: | Microsoft.SystemCenter.Foundation.SPFData.Types.Gallery.VMRoleGalleryItem |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-WhatIf
Cmdlet çalıştırılıyorsa ne olacağını gösterir. Cmdlet çalıştırılmaz.
Type: | System.Management.Automation.SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Girişler
Microsoft.SystemCenter.Foundation.SPFData.Types.Gallery.VMRoleGalleryItem
Çıkışlar
System.Object