Skip to main content

UploadControlSettings.SharePointSettings Property

Provides access to the account settings required to upload files to OneDrive.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.2.dll

Declaration

public UploadControlSharePointSettings SharePointSettings { get; }

Property Value

Type Description
UploadControlSharePointSettings

The SharePoint account settings.

Remarks

To work with SharePoint, set the UploadControlSettings.UploadStorage property to SharePoint.

@Html.DevExpress().UploadControl(
    settings => {
        settings.Name = "ucSharePointUploader";
        settings.UploadStorage = UploadControlUploadStorage.SharePoint;
        settings.SharePointSettings.AccountName = Model.AccountName;
        settings.SharePointSettings.TokenEndpoint = Model.TokenEndpoint;
        settings.SharePointSettings.RedirectUri = Model.RedirectUri;
        settings.SharePointSettings.SiteName = Model.SiteName;
        settings.SharePointSettings.SiteHostName = Model.SiteHostName;
        settings.SharePointSettings.UploadFolder = "UploadedFiles";
        //...
    }
).GetHtml()
See Also