Share via


IPublisher.MetadataOnly Property

 

Applies To: Windows Server Update Services

Gets or sets a value indicating whether or not the publishing process will operate in a metadata only mode.

Namespace:   Microsoft.UpdateServices.Administration
Assembly:  Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)

Syntax

bool MetadataOnly { get; set; }
property bool MetadataOnly {
    bool get();
    void set(bool value);
}
abstract MetadataOnly : bool with get, set
Property MetadataOnly As Boolean

Property Value

Type: System.Boolean

A value indicating whether or not the publishing process will operate in a metadata only mode.

Remarks

By default, this value is false and should remain so unless needed for a very specific scenario and server configuration. When this property is true, the subsequent call to PublishPackage() will skip all file operations for the package and will instead read the file information from the OriginFile element in the SoftwareDistributionPackage XML. If that OriginFile information is missing, the PublishPackage() process will fail. This property is only supported when the server is configured to host content on Microsoft Update. The MU URl for the files of the published package will point to the location of the OriginFile and clients will be expected to download the file by using that URL. Other server configuration combinations (host locally, parent, and child hierarchies) may not work and will cause the package to enter a Failed state on the server. If that happens, either change the server configuration or re-publish the package without by using the MetadataOnly property.

See Also

IPublisher Interface
Microsoft.UpdateServices.Administration Namespace

Return to top