WebDAV .NET Class Library
WebDAV .NET Class Library
WebDAV .NET
Independentsoft.Webdav
Resource Class
Resource Properties
Address Property
AllowAutoRedirect Property
AllowBuffering Property
ClientCertificate Property
ContentType Property
Cookies Property
HttpWebRequest Property
HttpWebResponse Property
KeepAlive Property
PreAuthenticate Property
RequestHeader Property
SendChunked Property
Session Property
SetContentLength Property
Timeout Property
UnsafeAuthenticatedConnectionSharing Property
UserAgent Property

# Resource RequestHeader Property

Gets or sets the custom request header.

Namespace: Independentsoft.Webdav
Assembly: Independentsoft.Webdav (in Independentsoft.Webdav.dll) Version: 1.0.700.18437
Syntax
C#
VB
Copy

    public string[] RequestHeader { get; set; }

    Public Property RequestHeader As String()
    	Get
    	Set

#### Property Value

Type:
String
Remarks
Header name and value are comma separated.
Examples
The following example demonstrates how to use this property:
Copy

    string[] myHeader = string[1];

    //Add the Accept-Language header (for Danish) in the request.
    myHeader[0] = "Accept-Language:da";

    resource.RequestHeader = myHeader;

See Also

#### Reference

Resource Class
Independentsoft.Webdav Namespace

Copyright 2022 Independentsoft

Send comments on this topic to support@independentsoft.de