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
name
Type: System.StringThe file name.
modified
Type: System.DateTimeThe modified date of the published file.
fileUri
Type: System.UriThe URL that clients should use to download this file.
originUri
Type: System.UriThe original URL of this file if it was downloaded from a service such as Microsoft Update.
totalBytes
Type: System.Int64The total size of this file, in bytes.
type
Type: Microsoft.UpdateServices.Administration.FileTypeThe type of this file.
isEula
Type: System.BooleanWhether this file is a license agreement.
hash
Type: System.Byte[]The SHA1 hash of this file.
additionalHash
Type: System.Byte[]The SHA2 hash of this file.
See Also
UpdateFile Class
Microsoft.UpdateServices.Administration Namespace
Return to top