Search Results for

    Show / Hide Table of Contents

    Class SharePointRestError

    SharePoint Rest service error

    Inheritance
    System.Object
    BaseError
    ServiceError
    SharePointRestError
    Inherited Members
    ServiceError.HttpResponseCode
    ServiceError.Message
    ServiceError.ClientRequestId
    ServiceError.Code
    BaseError.Type
    BaseError.PnPCorrelationId
    BaseError.AdditionalData
    BaseError.AddAdditionalData(String, Object)
    Namespace: PnP.Core
    Assembly: PnP.Core.dll
    Syntax
    public class SharePointRestError : ServiceError

    Constructors

    SharePointRestError(ErrorType, Int32, String, Dictionary<String, String>)

    Default constructor for the SharePointRestError error

    Declaration
    public SharePointRestError(ErrorType type, int httpResponseCode, string response, Dictionary<string, string> responseHeaders = null)
    Parameters
    ErrorType type

    ErrorType type of the error

    System.Int32 httpResponseCode

    Http response code of the service request that failed

    System.String response

    Service request response content

    Dictionary<System.String, System.String> responseHeaders

    Optional collection of request response headers

    Properties

    ServerErrorCode

    SharePoint server error code

    Declaration
    public long ServerErrorCode { get; }
    Property Value
    System.Int64

    Methods

    ToString()

    Outputs a SharePointRestError to a string representation

    Declaration
    public override string ToString()
    Returns
    System.String

    String representation

    Back to top PnP Core SDK
    Generated by DocFX with Material UI
    spacer