Partager via


UpdateFile Constructor (String, DateTime, Uri, Uri, Int64, FileType, Boolean, Byte[], Byte )

 

Applies To: Windows Server Update Services

Initializes a new instance of the UpdateFile class.

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

Syntax

public UpdateFile(
    string name,
    DateTime modified,
    Uri fileUri,
    Uri originUri,
    long totalBytes,
    FileType type,
    bool isEula,
    byte[] hash,
    byte[] additionalHash
)
public:
UpdateFile(
    String^ name,
    DateTime modified,
    Uri^ fileUri,
    Uri^ originUri,
    long long totalBytes,
    FileType type,
    bool isEula,
    array<unsigned char>^ hash,
    array<unsigned char>^ additionalHash
)
new : 
        name:string *
        modified:DateTime *
        fileUri:Uri *
        originUri:Uri *
        totalBytes:int64 *
        type:FileType *
        isEula:bool *
        hash:byte[] *
        additionalHash:byte[] -> UpdateFile
Public Sub New (
    name As String,
    modified As Date,
    fileUri As Uri,
    originUri As Uri,
    totalBytes As Long,
    type As FileType,
    isEula As Boolean,
    hash As Byte(),
    additionalHash As Byte()
)

Parameters

  • fileUri
    Type: System.Uri

    The URL that clients should use to download this file.

  • originUri
    Type: System.Uri

    The original URL of this file if it was downloaded from a service such as Microsoft Update.

  • totalBytes
    Type: System.Int64

    The total size of this file, in bytes.

  • isEula
    Type: System.Boolean

    Whether this file is a license agreement.

  • additionalHash
    Type: System.Byte[]

    The SHA2 hash of this file.

See Also

UpdateFile Class
Microsoft.UpdateServices.Administration Namespace

Return to top