diff --git a/Bin/AjaxControlToolkit.dll b/Bin/AjaxControlToolkit.dll new file mode 100644 index 0000000..65ad083 Binary files /dev/null and b/Bin/AjaxControlToolkit.dll differ diff --git a/Bin/AjaxControlToolkit.dll.refresh b/Bin/AjaxControlToolkit.dll.refresh new file mode 100644 index 0000000..031d9ed Binary files /dev/null and b/Bin/AjaxControlToolkit.dll.refresh differ diff --git a/Bin/Aliyun.OSS.Core.dll b/Bin/Aliyun.OSS.Core.dll new file mode 100644 index 0000000..71b2103 Binary files /dev/null and b/Bin/Aliyun.OSS.Core.dll differ diff --git a/Bin/Aliyun.OSS.Core.dll.refresh b/Bin/Aliyun.OSS.Core.dll.refresh new file mode 100644 index 0000000..11109ee Binary files /dev/null and b/Bin/Aliyun.OSS.Core.dll.refresh differ diff --git a/Bin/Aliyun.OSS.Core.pdb b/Bin/Aliyun.OSS.Core.pdb new file mode 100644 index 0000000..f582cb0 Binary files /dev/null and b/Bin/Aliyun.OSS.Core.pdb differ diff --git a/Bin/Aliyun.OSS.Core.xml b/Bin/Aliyun.OSS.Core.xml new file mode 100644 index 0000000..ac113e4 --- /dev/null +++ b/Bin/Aliyun.OSS.Core.xml @@ -0,0 +1,9116 @@ + + + + Aliyun.OSS.Core + + + + + Delete bucket tagging command. + + + + + Delete LiveChannel command. + + + + + Delete object tagging command. + + + + + Description of SetBucketRefererCommand. + + + + + Delete bucket lifecycle command. + + + + + Get bucket info command. + + + + + Get bucket info command. + + + + + The client configuration that specifies the network parameters. + + + + + Max Http connection connection count. By default it's 512. + + + + + User-Agent in requests to OSS + + + + + Proxy host + + + + + Proxy port + + + + + Proxy user name + + + + + Proxy user password + + + + + The proxy user name's domain for authentication + + + + + Connection timeout in milliseconds + + + + + Max error retry count + + + + + Protocols used to access OSS (HTTP or HTTPS) + + + + + If the endpoint is the CName. + If it's CName, ListBuckets is not supported. + + + + + The progress update interval in terms of data upload/download's delta in bytes. By default it's 4096 bytes. + + + + + Flag of enabling MD5 checksum. + When EnalbeMD5Check is set true, MD5 will be checked and CRC check will be skipped whenever MD5 is applicable. + + + + + Gets or sets a value indicating whether this enable + crc check. + When EnalbeMD5Check is set true, MD5 will be checked and CRC check will be skipped whenever MD5 is applicable. + + true if enable crc check; otherwise, false. + + + + Sets the custom base time + + OSS's token validation logic depends on the time. It requires that there's no more than 15 min time difference between client and OSS server. + This API calculates the difference between local time to epoch time. Later one other APIs use this difference to offset the local time before sending request to OSS. + + + Custom Epoch ticks (in seconds) + + + + Gets the difference between customized epoch time and local time, in seconds + + + + + Gets or sets the direct write stream threshold. + The theshold is the file size threshold that when the uploading file size is more than this value, the HttpWebRequest will not use write buffer to save the memory. + + The direct write stream threshold. + + + + Gets or sets the size of the max part caching size + In multipart upload (resumable upload), if the part size is no bigger than MaxPartCachingSize, it will cache the whole part data before sending the data out. + + The size of the max part caching. + + + + Gets or sets the pre read buffer count in resumable upload. + The max value could be the same size of MaxResumableUploadThreads; + + The pre read buffer count. + + + + When uploading a file with resumable upload, the default behavior is to read the source file in multiple-threading. + But in old HDD, single thread read may be faster. And when the read speed is the bottleneck, try to change this parameter to compare the result. + + true if use single thread read in resumable upload; otherwise, false. + + + + Use new ServiceClient's implementation. + + + + + A flag of verifying object name strictly. By default it's true. + + + + + SignatureVersion used to sign the request to OSS + + + + + Gets the default user agent + + + + + Default Credential class + + + + + + + + + + + + + + + + + creates a instance of + + OSS access key Id + OSS access secret + STS security token + + + + Default ICredentialProvider implementation + + + + + Creates a instance of + + ICredentials instance + + + + + + + + + + ICredentialsProvider Interface + + + + + Sets the instance + + An instance of + + + + Gets an instance of + + ICredential instance + + + + ICredential interface + + + + + OSS access key Id + + + + + OSS access key secret + + + + + STS security token + + + + + FLag of using STS's SecurityToken + + + + + List of HTTP response handlers. + + + + + Gets or sets the request signer. + + + + + Gets or sets the credentials. + + + + + Gets the list of . + + + + + Gets or sets a concrete command associate with this context. + + + + + The new implementation for ServiceClient under dotnet core + + + + + Gets the dictionary of HTTP headers. + + + + + Gets or sets the content stream. + + + + + Represents a HTTP method. + + + + + Represents HTTP GET. Default value. + + + + + Represents HTTP DELETE. + + + + + Represents HTTP HEAD. + + + + + Represents HTTP POST. + + + + + Represents HTTP PUT. + + + + + Represents HTTP OPTIONS. + + + + + Represent the channel that communicates with an Aliyun Open Service. + + + + + Sends a request to the service. + + The request data. + The execution context. + The response data. + + + + Begins to send a request to the service asynchronously. + + The request data. + The execution context. + User callback. + User state. + An instance of . + + + + Ends the asynchronous operation. + + An instance of . + The response data. + + + + Gets or sets the endpoint. + + + + + Gets or sets the resource path of the request URI. + + + + + Gets or sets the HTTP method. + + + + + Gets the dictionary of the request parameters. + + + + + Gets whether the request can be repeated. + + + + + Gets or sets a value indicating whether this + use chunked encoding. + + true if use chunked encoding; otherwise, false. + + + + Gets or sets a value indicating whether this + parameters in URL. + + true if parameters in URL; otherwise, false. + + + + Build the request URI from the request message. + + + + + + Throws the exception from communication if the status code is not 2xx. + + + + + Implementation of that will auto-retry HTTP requests + when encountering some specific exceptions or failures. + + + + + The default implementation of that + used to communicate with Aliyun OSS via HTTP protocol. + + + + + Represents the async operation of requests in . + + + + + Represents the response data of requests. + + + + + The default implementation of . + + + + + Exception thrown by the SDK for errors that occur within the SDK. + + + + + Constructs a new instance of the ClientException class with serialized data. + + The that holds the serialized object data about the exception being thrown. + The that contains contextual information about the source or destination. + The parameter is null. + The class name is null or is zero (0). + + + + Implements the Dispose pattern + + Whether this object is being disposed via a call to Dispose + or garbage collected. + + + + Disposes of all managed and unmanaged resources. + + + + + A wrapper stream that calculates a hash of the base stream as it + is being read. + The calculated hash is only available after the stream is closed or + CalculateHash is called. After calling CalculateHash, any further reads + on the streams will not change the CalculatedHash. + If an ExpectedHash is specified and is not equal to the calculated hash, + Close or CalculateHash methods will throw an ClientException. + If CalculatedHash is calculated for only the portion of the stream that + is read. + + + Exception thrown during Close() or CalculateHash(), if ExpectedHash is set and + is different from CalculateHash that the stream calculates, provided that + CalculatedHash is not a zero-length byte array. + + + + + Algorithm to use to calculate hash. + + + + + True if hashing is finished and no more hashing should be done; + otherwise false. + + + + + Current position in the stream. + + + + + Calculated hash for the stream. + This value is set only after the stream is closed. + + + + + Expected hash value. Compared against CalculatedHash upon Close(). + If the hashes are different, an ClientException is thrown. + + + + + Expected length of stream. + + + + + Initializes an HashStream with a hash algorithm and a base stream. + + Stream to calculate hash for. + + + + Initializes an HashStream with a hash algorithm and a base stream. + + Stream to calculate hash for. + + Expected hash. Will be compared against calculated hash on stream close. + Pass in null to disable check. + + + Expected length of the stream. If the reading stops before reaching this + position, CalculatedHash will be set to empty array. + + + + + Reads a sequence of bytes from the current stream and advances the position + within the stream by the number of bytes read. + + + An array of bytes. When this method returns, the buffer contains the specified + byte array with the values between offset and (offset + count - 1) replaced + by the bytes read from the current source. + + + The zero-based byte offset in buffer at which to begin storing the data read + from the current stream. + + + The maximum number of bytes to be read from the current stream. + + + The total number of bytes read into the buffer. This can be less than the + number of bytes requested if that many bytes are not currently available, + or zero (0) if the end of the stream has been reached. + + + + + Write the specified buffer, offset and count. + + The write. + Buffer. + Offset. + Count. + + + + Closes the underlying stream and finishes calculating the hash. + If an ExpectedHash is specified and is not equal to the calculated hash, + this method will throw an ClientException. + + + If ExpectedHash is set and is different from CalculateHash that the stream calculates. + + + + + Gets a value indicating whether the current stream supports seeking. + HashStream does not support seeking, this will always be false. + + + + + Gets or sets the position within the current stream. + HashStream does not support seeking, attempting to set Position + will throw NotSupportedException. + + + + + Sets the position within the current stream. + HashStream does not support seeking, attempting to call Seek + will throw NotSupportedException. + + A byte offset relative to the origin parameter. + + A value of type System.IO.SeekOrigin indicating the reference point used + to obtain the new position. + The new position within the current stream. + + + + Gets the overridden length used to construct the HashStream + + + + + Calculates the hash for the stream so far and disables any further + hashing. + + + + + Resets the hash stream to starting state. + Use this if the underlying stream has been modified and needs + to be rehashed without reconstructing the hierarchy. + + + + + Validates the underlying stream. + + + + + Compares two hashes (arrays of bytes). + + Expected hash. + Actual hash. + + True if the hashes are identical; otherwise false. + + + + + A wrapper stream that calculates a hash of the base stream as it + is being read or written. + The calculated hash is only available after the stream is closed or + CalculateHash is called. After calling CalculateHash, any further reads + on the streams will not change the CalculatedHash. + If an ExpectedHash is specified and is not equal to the calculated hash, + Close or CalculateHash methods will throw an ClientException. + If base stream's position is not 0 or HashOnReads is true and the entire stream is + not read, the CalculatedHash will be set to an empty byte array and + comparison to ExpectedHash will not be made. + + + Exception thrown during Close() or CalculateHash(), if ExpectedHash is set and + is different from CalculateHash that the stream calculates, provided that + CalculatedHash is not a zero-length byte array. + + + + + Initializes an HashStream with a hash algorithm and a base stream. + + Stream to calculate hash for. + + Expected hash. Will be compared against calculated hash on stream close. + Pass in null to disable check. + + + Expected length of the stream. If the reading stops before reaching this + position, CalculatedHash will be set to empty array. + + + + + A wrapper stream that calculates an MD5 hash of the base stream as it + is being read or written. + The calculated hash is only available after the stream is closed or + CalculateHash is called. After calling CalculateHash, any further reads + on the streams will not change the CalculatedHash. + If an ExpectedHash is specified and is not equal to the calculated hash, + Close or CalculateHash methods will throw an ClientException. + If base stream's position is not 0 or HashOnReads is true and the entire stream is + not read, the CalculatedHash will be set to an empty byte array and + comparison to ExpectedHash will not be made. + + + Exception thrown during Close() or CalculateHash(), if ExpectedHash is set and + is different from CalculateHash that the stream calculates, provided that + CalculatedHash is not a zero-length byte array. + + + + + Initializes an MD5Stream with a base stream. + + Stream to calculate hash for. + + Expected hash. Will be compared against calculated hash on stream close. + Pass in null to disable check. + + + Expected length of the stream. If the reading stops before reaching this + position, CalculatedHash will be set to empty array. + + + + + This class is used to wrap a stream for a particular segment of a stream. It + makes that segment look like you are reading from beginning to end of the stream. + + + + + A wrapper stream. + + + + + Base stream. + + + + + Initializes WrapperStream with a base stream. + + + + + + Returns the first base non-WrapperStream. + + First base stream that is non-WrapperStream. + + + + Returns the first base non-WrapperStream. + + First base stream that is non-WrapperStream. + + + + Returns the first base non-WrapperStream. + + Potential WrapperStream + Base non-WrapperStream. + + + + Gets a value indicating whether the current stream supports reading. + True if the stream supports reading; otherwise, false. + + + + + Gets a value indicating whether the current stream supports seeking. + True if the stream supports seeking; otherwise, false. + + + + + Gets a value indicating whether the current stream supports writing. + True if the stream supports writing; otherwise, false. + + + + + Closes the current stream and releases any resources (such as sockets and + file handles) associated with the current stream. + + + + + Gets the length in bytes of the stream. + + + + + Gets or sets the position within the current stream. + + + + + Gets or sets a value, in miliseconds, that determines how long the stream + will attempt to read before timing out. + + + + + Gets or sets a value, in miliseconds, that determines how long the stream + will attempt to write before timing out. + + + + + Clears all buffers for this stream and causes any buffered data to be written + to the underlying device. + + + + + Reads a sequence of bytes from the current stream and advances the position + within the stream by the number of bytes read. + + + An array of bytes. When this method returns, the buffer contains the specified + byte array with the values between offset and (offset + count - 1) replaced + by the bytes read from the current source. + + + The zero-based byte offset in buffer at which to begin storing the data read + from the current stream. + + + The maximum number of bytes to be read from the current stream. + + + The total number of bytes read into the buffer. This can be less than the + number of bytes requested if that many bytes are not currently available, + or zero (0) if the end of the stream has been reached. + + + + + Sets the position within the current stream. + + A byte offset relative to the origin parameter. + + A value of type System.IO.SeekOrigin indicating the reference point used + to obtain the new position. + The new position within the current stream. + + + + Sets the length of the current stream. + + The desired length of the current stream in bytes. + + + + Writes a sequence of bytes to the current stream and advances the current + position within this stream by the number of bytes written. + + + An array of bytes. This method copies count bytes from buffer to the current stream. + + + The zero-based byte offset in buffer at which to begin copying bytes to the + current stream. + + The number of bytes to be written to the current stream. + + + + The OSS (Object Storage Service) Erro code definitions + + 。 + + + + Access Denied + + + + + Bucket already exists + + + + + Bucket is not empty (so that deletion will not work) + + + + + Entity is too large + + + + + Entity is too small (this could happen when trying to use multipart upload for a small file. + + + + + File group is too large. + + + + + Object Link has the same name of the object it points to. + + + + + Object Link points to a non-existing object. + + + + + Object Link's object count is more than 1. One symlink could only point to one object. + + + + + The item is too long in the post request. + + + + + File part has been changed. + + + + + File part does not exist + + + + + File part has been expired. + + + + + File count is invalid in the post. + + + + + Invalid argument + + + + + Access ID does not exist + + + + + Invalid bucket name + + + + + Invalid digest + + + + + Invalid target bucket for logginbg + + + + + Invalid object name + + + + + Invalid part + + + + + Invalid part order (the part Ids must be in ascending order) + + + + + Invalid policy document + + + + + OSS internal error (possibly OSS bug) + + + + + Malformed XML + + + + + Malformed body in the post request. + + + + + The non-content body size in a file upload request is too big + + + + + HTTP Method is not allowed.(for example some CORS rules could define allowed methods) + + + + + Missing argument + + + + + Missing content length--in HTTP post/put requests, the content length is needed. + + + + + Bucket does not exist. + + + + + Object does not exist in OSS + + + + + Multipart Upload ID does not exist + + + + + Not implemented methods + + + + + Precondition failed. + + + + + The time skew is too big (more than 15 minutes) + + + + + Request timeout + + + + + Invalid content-type in the post request. + + + + + Signature does not match + + + + + Bucket counts exceeds the limit + + + + + Invalid Encryption Algorithems error + + + + + The source bucket is not enabled with static website + + + + + CORS rules do not exist + + + + + 304 Not modified + + + + + 203 callback call failed + + + + + This is the expected exception that is thrown when accessing OSS. + + + + + + Initializes a new instance + + + + + Initializes a new instance + + Error message for the exception + + + + Initializes a instance + + Serialization information + The context information + + + + Initializes a new instance + + Error Message + Inner exceptions + + + + Override themethods + + ,Serialization information about the object + Context information + + + + + The exception returned from OSS server side. + + + is used for wrap the error messages from OSS server side. + For example, if Access key Id does not exist, it will throw . + The exception has the error codes for caller to handle. + + + means there's network issue when OSS client sends request to OSS server. + For example, if the network is not available, it will throw . + + + means the client code handnle parse or handle the response. In this case it might means the response is incomplete or the SDK + does not match the OSS's response, in which case the SDK needs the upgrade. + + Generally speaking, caller only needs to handle . It means the request has been processed by OSS (so network is not an issue), + but the request could not be processed by OSS correctly. The error code of ServiceException could help to understand the issue and the caller could handle it properly. + + + + + + + + The error code getter + + + + + The requestId getter + + + + + Host ID getter + + + + + Creates a instance. + + + + + Creates a new instance. + + The error messag + + + + Creates a new instance. + + Error messag + internal exception + + + + Creates a new instance. + + serialization information + context information + + + + Overrides method + + serialization information instance + context information + + + + The result class of the operation to get bucket encryption config + + + + + Server-side encryption method. + + + + + The CMK id. + + + + + OSS bucket's metadata, which is the collection of 'key,value' pair. + + + + + Gets HTTP standard headers and their values. + + + + + Gets or sets the bucket region(location) + + + + + Adds one HTTP header and its value. + + header name + header value + + + + The result class of the operation to get bucket's location. + + + + + The bucket location. + + + + + The request class of the operation to CompleteBucketWorm. + + + + + Gets the bucket name + + + + + Gets the worm id + + + + + Creates a instance of . + + bucket name + wormId + + + + The request class of the operation to set the bucket's lifecycle configuration. + + + + + Gets the bucket name + + + + + Gets the bucket StorageClass + + + + + Gets the bucket ACL + + + + + Gets the bucket DataRedundancyType + + + + + Creates a new intance of . + + bucket name + + + + Creates a new intance of . + + bucket name + the bucket storage class + the bucket acl + + + + The result class of the operation to create live channel. + + + + + The publish url. + + + + + The play url. + + + + + Specifies the compression type of the object. Valid values: None, GZIP. + + + + + Describes how a CSV-formatted input object is formatted. + + + + + Specifies the value used to separate individual records. + + + + + Specifies the value used to separate individual fields in a record. + + + + + Specifies the value used for escaping where the field delimiter is part of the value. + + + + + Describes how a JSON-formatted input object is formatted. + + + + + Specifies the type of the input JSON object. Valid values: DOCUMENT, LINES. + + + + + The request class of the operation to create the meta of select object. + + + + + Gets the bucket name + + + + + Gets the object key. + + + + + Gets or sets the input format + + + + + Gets or sets the overwrite flag + + + + + Creates a new instance of . + + bucket name + key + + + + The result class of the operation to create the meta of select object. + + + + + Gets or sets the ErrorMessage. + + + + + The result class for create symlink operation. + + + + + ETag getter/setter. ETag is calculated in the OSS server side by using the 128bit MD5 result on the object content. It's the hex string. + + + + + Gets or sets the version id. + + + + + The request class of the operation to delete the bucket's inventory configuration. + + + + + Gets the bucket name + + + + + Gets the inventory configuration id + + + + + Creates a new intance of . + + bucket name + inventory configuration id + + + + The request class of the operation to delete the bucket's tagging. + + + + + Gets the bucket name + + + + + Gets or sets the tags. + + + + + Creates a new intance of . + + bucket name + + + + Creates a new intance of . + + bucket name + tag list + + + + Adds a tag + + + + + + a deleted object summary information. + + + + + Gets or sets the object key. + + + + + Gets or sets the version of a object. + + + + + Gets or sets if it is a delete marker of a object. + + + + + Gets or sets the version of a delete marker. + + + + + The request class of the operation to delete the live channel. + + + + + Gets or sets the bucket name + + + + + Gets or sets the channel name + + + + + Delete a new instance of + + bucket name + live channel name + + + + of a delete marker summary information. + + + + + Gets or sets the bucket name + + + + + Gets or sets the object key. + + + + + Gets or sets the version of a object. + + + + + Gets or sets if it is the latest version of a object. + + + + + Gets the last modified time. + + + + + Get's the object's . + + + + + Creates a new instance of . + + + + + Gets the serialization result in string. + + serialization result in string + + + + The request class of the operation to delete an object from OSS. + + + + + Gets or sets the bucket name + + + + + Gets or sets the object key + + + + + Gets or sets the reqeust payer + + + + + Gets or sets the version id + + + + + Delete a new instance of + + bucket name + object key + + + + The result class for delete object operation. + + + + + Gets or sets the version id. + + + + + Gets or sets the delete marker. + + + + + The request class of the operation to delete the object tagging. + + + + + Gets or sets the bucket name + + + + + Gets or sets the object key + + + + + Gets or sets the reqeust payer + + + + + Gets or sets the version id + + + + + Delete a new instance of + + bucket name + object key + + + + The request class of the operation to delete multiple objects with version id in OSS. + + + + + Gets or sets the bucket name + + + + + Gets quiet mode flag. By default it's true; + + + + + Returns the object list where the caller could add or remove key + + + + + Gets or sets encoding-type value. By default it's HttpUtils.UrlEncodingType. + + + + + Gets or sets the reqeust payer + + + + + Creates an instance with bucket name and keys. Quiet mode is true by default. + + bucket name + object lists to delete + + + + Creates an instance with bucket name, objects and quiet flag. + + bucket name + object keys to delete + true: quiet mode; false: detail mode + + + + Description of DeleteObjectVersionsResult. + + + + + The iterator of that meet the requirements in the DeleteObjectVersionsRequest. + + + + + gets or sets EncodingType + + + + + The request class of the operation to ExtendBucketWorm. + + + + + Gets the bucket name + + + + + Gets the RetentionPeriodInDays + + + + + Gets the worm id + + + + + Creates a instance of . + + bucket name + RetentionPeriodInDays + wormId + + + + The request class of the operation to sign the rtmp URL + + + + + Bucket name getter/setter + + + + + Channel name getter/setter + + + + + Playlist name getter/setter + + + + + Getter/setter of the expiration time of the signed URL. + + + + + Gets or sets query parameters + + + + + Add a query parameter + + param name + param value + + + + Creates a new instance of . + + bucket name + object key + + + + The request class of the operation to get the bucket's inventory configuration. + + + + + Gets the bucket name + + + + + Gets the inventory configuration id + + + + + Creates a new intance of . + + bucket name + inventory configuration id + + + + The result class of the operation to get bucket's policy. + + + + + The bucket's policy. + + + + + The result class of the operation to get bucket's request payment. + + + + + Gets the request payment + + + + + The result class of the operation to get bucket's storage capacity. + + + + + The bucket storage capacity. + + + + + The result class of the operation to get bucket's tagging. + + + + + The bucket tagging. + + + + + The result class of the operation to get bucket's versioning configuration. + + + + + Gets the versioning status + + + + + The result class of the operation to get bucket worm. + + + + + Set or Gets the worm id + + + + + Set or Gets the bucket worm state + + + + + Set or Gets the retention period in days + + + + + Set or Gets the creation date + + + + + The request class of the operation to get live channel history. + + + + + Gets or sets the bucket name + + + + + Gets or sets the channel name + + + + + Gets a new instance of + + bucket name + live channel name + + + + The result class of the operation to get live channel history. + + + + + The iterator of . + + + + + The request class of the operation to get live channel info. + + + + + Gets or sets the bucket name + + + + + Gets or sets the channel name + + + + + Gets a new instance of + + bucket name + live channel name + + + + The result class of the operation to get live channel info. + + + + + Gets or sets the description + + + + + Gets or sets the status + + + + + Gets or sets the type + + + + + Gets or sets the frag duration + + + + + Gets or sets the frag count + + + + + Gets or sets playlist name + + + + + The request class of the operation to get live channel stat. + + + + + Gets or sets the bucket name + + + + + Gets or sets the channel name + + + + + Gets a new instance of + + bucket name + live channel name + + + + The result class of the operation to get live channel stat. + + + + + Gets or sets the Status + + + + + Gets or sets the connected time + + + + + Gets or sets the remote address + + + + + Gets or sets the video width + + + + + Gets or sets the video height + + + + + Gets or sets the video frame rate + + + + + Gets or sets the video bandwidth + + + + + Gets or sets the video codec + + + + + Gets or sets the audio sample rate + + + + + Gets or sets the audio bandwidth + + + + + Gets or sets the audio codec + + + + + The request class of the operation to get the object ACL. + + + + + Gets or sets the bucket name + + + + + Gets or sets the object key + + + + + Gets or sets the reqeust payer + + + + + Gets or sets the version id + + + + + Delete a new instance of + + bucket name + object key + + + + The request class of the operation to get the object meta. + + + + + Gets or sets the bucket name + + + + + Gets or sets the object key + + + + + Gets or sets the reqeust payer + + + + + Gets or sets the version id + + + + + Delete a new instance of + + bucket name + object key + + + + The request class of the operation to get the object tagging. + + + + + Gets or sets the bucket name + + + + + Gets or sets the object key + + + + + Gets or sets the reqeust payer + + + + + Gets or sets the version id + + + + + Delete a new instance of + + bucket name + object key + + + + The result class of the operation to get bucket's tagging. + + + + + The bucket tagging. + + + + + Gets or sets the version id. + + + + + The request class of the operation to get the object symlink. + + + + + Gets or sets the bucket name + + + + + Gets or sets the object key + + + + + Gets or sets the reqeust payer + + + + + Gets or sets the version id + + + + + Delete a new instance of + + bucket name + object key + + + + The request class of the operation to get a vod playlist. + + + + + Gets or sets the bucket name + + + + + Gets or sets the channel name + + + + + Gets or sets the start time + + + + + Gets or sets the end time + + + + + Sets a new instance of + + bucket name + live channel name + + + + The result class of the operation to get vod's playlist. + + + + + The vod's playlist. + + + + + The result class of the operation to initiate bucket worm. + + + + + Set or Gets the worm id + + + + + The inventory filter class definition + + + + + Gets or sets the prefix value + + + + + Creates a new instance of . + + the prefix that an object must have to be included in the inventory results. + + + + Creates a new instance of . + + + + + The inventory schedule class definition + + + + + Gets or sets the frequency value. + + + + + Creates a new instance of . + + how frequently inventory results are produced. + + + + Creates a new instance of . + + + + + The inventory SSE-OSS class definition + + + + + Creates a new instance of . + + + + + The inventory SSE-KMS class definition + + + + + Gets or sets the KMS key id + + + + + Creates a new instance of . + + the KMS key id used to encrypt the inventory contents. + + + + Creates a new instance of . + + + + + The inventory encryption class definition + + + + + Gets or sets the SSE-OSS encryption. + + + + + Gets or sets the SSE-KMS encryption. + + + + + Creates a new instance of . + + specifies the use of SSE-OSS to encrypt delivered inventory results. + + + + Creates a new instance of . + + specifies the use of SSE-KMS to encrypt delivered inventory results. + + + + Creates a new instance of . + + + + + The inventory destination for OSS bucket class definition + + + + + Gets or sets the output format of the inventory results. + + + + + Gets or sets the account ID that owns the destination bucket. + + + + + Gets or sets the name of the role arn. + + + + + Gets or sets the bucket where inventory results will be published. + + + + + Gets or sets the prefix that is prepended to all inventory results. + + + + + Gets or sets the type of server-side encryption used to encrypt the inventory results. + + + + + Creates a new instance of . + + + + + The inventory destination class definition + + + + + Gets or sets the OSS bucket information. + + + + + Creates a new instance of . + + + + + The inventory configuration class definition + + + + + Gets or sets the ID used to identify the inventory configuration. + + + + + Gets or sets the status of the inventory. + If set to true, an inventory list is generated. + If set to false, no inventory list is generated. + + + + + Gets or sets the inventory filter. + The inventory only includes objects that meet the filter's criteria. + + + + + Gets or sets information about where to publish the inventory results. + + + + + Gets or sets the schedule for generating inventory results. + + + + + Gets or sets object versions to include in the inventory list. + + + + + Gets or sets the optional fields that are included in the inventory result. + + + + + The request class of the operation to initiate bucket worm. + + + + + Gets the bucket name + + + + + Gets the retention period in days + + + + + Creates a instance of . + + bucket name + RetentionPeriodInDays + + + + The request class of the operation to list the bucket's inventory configuration. + + + + + Gets the bucket name + + + + + Gets the inventory continuation token + + + + + Creates a new intance of . + + bucket name + continuation token + + + + The request class of the operation to list the live channel. + + + + + Gets or sets the bucket name + + + + + Gets or sets the live channel name prefix to list (optional) + + + + + Gets or sets the marker of the live channel name. + + + + + Gets or sets the max entries to return. By default is 100. + + + + + Creates an instance of . + + bucket name + + + + The result class of the operation to list live channel. + + + + + Gets or sets the live channel name prefix(optional). + + + + + Gets or sets the live channel name marker.Its value should be same as the ListLiveChannelRequest.Marker. + + + + + Gets or sets the max entries to return. + By default it's 100. + + + + + Gets or sets the flag of truncated. If it's true, means not all live channels have been returned. + + + + + Gets the next marker's value. Assign this value to the next call's ListLiveChannelRequest.marker. + + + + + Gets the live channel iterator. + + + + + The request class of the operation to list the summary about the versions() + + + + + Gets or sets bucket name + + + + + Gets or sets the object name prefix. The names of the returned object must be prefixed by this value. + It's optional. If it's not set, then there's no requirement on the object name. + + + + + Gets or sets the marker value. The name of returned objects must be greater than this value in lexicographic order. + + + + + Gets or sets the version id marker value. + + + + + Gets or sets the max entries to return. + By default it's 100. + + + + + Gets or sets the delimiter for grouping the returned objects based on their keys. + + + + + Gets or sets encoding-type. + + + + + Gets or sets the reqeust payer + + + + + Creates an instance of . + + bucket name + + + + Gets or sets the name + + + + + Gets or sets the name + + + + + Gets or sets the status + + + + + Gets or sets the last modified time + + + + + Gets or sets the publish url + + + + + Gets or sets the play url + + + + + Gets or sets the start time + + + + + Gets or sets the end time + + + + + Gets or sets the remote address + + + + + The object's identifier. + + + + + the object key. + + + + + the object version id. + + + + + Creates a new intance of . + + object name + + + + Creates a new intance of . + + object name + the object version id + + + + The result class of the operation to list object versions. + + + + + Gets bucket name + + + + + Gets the next key maker value for the value of in the next call. + If the result is not truncated, this value is null. + + + + + Gets the next version id maker value for the value of in the next call. + If the result is not truncated, this value is null. + + + + + Flag of truncated result. + True: the result is truncated (there's more data to list). + False: no more data in server side to return. + + + + + The object key's marker. The value comes from . + + + + + The version id's marker. The value comes from . + + + + + The max keys to list. The value comes from . + + + + + The object key's prefix. The value comes from . + + + + + The delimiter for grouping object. The value comes from . + + + + + The iterator of that meet the requirements in the ListObjectVersionsRequest. + + + + + The iterator of that meet the requirements in the ListObjectVersionsRequest. + + + + + The common prefixes in the result. The objects returned do not include the objects under these common prefixes (folders). + + + + + Creates a new instance of . + + name + + + + of a version summary information, no object data. + + + + + Gets or sets the bucket name + + + + + Gets or sets the object key. + + + + + Gets or sets the version of a object. + + + + + Gets or sets if it is the latest version of a object. + + + + + Gets or sets the ETag which is the MD5 summry in hex string of the object. + + + + + Gets or sets the size of the object in bytes. + + + + + Gets or sets the last modified time. + + + + + Gets or sets the object's storage class. + + + + + Gets or sets the object's . + + + + + Gets or sets the object's type. + + + + + Creates a new instance of . + + + + + Gets the serialization result in string. + + serialization result in string + + + + The request class of the operation to create a vod playlist. + + + + + Gets or sets the bucket name + + + + + Gets or sets the channel name + + + + + Gets or sets the playlist name + + + + + Gets or sets the start time + + + + + Gets or sets the end time + + + + + Sets a new instance of + + bucket name + live channel name + + + + The request class of the operation to process the object. + + + + + Gets or sets the bucket name + + + + + Gets or sets the object key + + + + + Gets or sets the process + + + + + Creates a new instance of + + bucket name + object key + + + + The result class of the operation to process the object. + + + + + Gets the content of result + + + + + The request class of the operation to restore an object from OSS. + + + + + Gets or sets the bucket name + + + + + Gets or sets the object key + + + + + Gets or sets the reqeust payer + + + + + Gets or sets the version id + + + + + Gets or sets the Days + + + + + Gets or sets the TierType + + + + + Creates a new instance of + + bucket name + object key + + + + Flag of using default parameters. + + + + + Specifies the compression type of the object. Valid values: None, GZIP. + + + + + Describes how a CSV-formatted input object is formatted. + + + + + Specifies the value used to separate individual records. + + + + + Specifies the value used to separate individual fields in a record. + + + + + Specifies the value used for escaping where the field delimiter is part of the value. + + + + + Specifies the comment character used in the object. + + + + + Specifies the query range. The following two query methods are supported: + Query by row: line-range=start-end + Query by split: split-range=start-end + + + + + Specifies the first line of input. Valid values: None, Ignore, Use. + + + + + Specifies whether the CSV object contains line breaks in quotation marks (") + + + + + Describes how a JSON-formatted input object is formatted. + + + + + Specifies the type of the input JSON object. Valid values: DOCUMENT, LINES. + + + + + Specifies the query range. The following two query methods are supported: + Query by row: line-range=start-end + Query by split: split-range=start-end + This parameter can only be used when the JSON Type is LINES. + + + + + Specifies whether to parse integers and floating-point numbers in a JSON object into strings. + + + + + Specifies whether to output in raw format. Default value is fasle. + + + + + Specifies whether to include a CRC-32 value for each frame. + This value is used to verify frame data. + + + + + Describes how CSV-formatted results are formatted. + + + + + Specifies the value used to separate individual records. + + + + + Specifies the value used to separate individual fields in a record. + + + + + Specifies whether to include that all columns in the CSV object. + + + + + Specifies whether to include the header information of the CSV object in the beginning of the returned. + + + + + Describes how JSON-formatted results are formatted. + + + + + Specifies the value used to separate individual records in the output. + + + + + Specifies whether to ignore rows without data. + + + + + Specifies the maximum allowed number of skipped rows. + + + + + The request class of the operation to select object. + + + + + Gets the bucket name + + + + + Gets the object key. + + + + + Gets or sets The SQL Expression. + + + + + Gets or sets the format of the data in the object that is being queried. + + + + + Gets or sets the format of the data that you want the server to return in response. + + + + + Gets or sets the options when quering the data. + + + + + Creates a new intance of . + + bucket name + key + + + + The request class of the operation to set bucket encryption configuration. + + + + + Gets bucket name + + + + + Gets server-side encryption method. + + + + + Gets the CMK id. + + + + + Creates a new instance of . + + bucket name + server-side encryption method + + + + Creates a new instance of . + + bucket name + server-side encryption method + the CMK id + + + + The request class of the operation to set the bucket Policy. + + + + + Gets the bucket policy + + + + + Gets the bucket name + + + + + Creates a instance of . + + bucket name + policy text + + + + The request class of the operation to set the bucket request payment. + + + + + Gets the bucket name + + + + + Gets the request payment + + + + + Creates a instance of . + + bucket name + request payer + + + + The request class of the operation to set the bucket storage capacity + + + + + Gets the bucket name + + + + + The bucket storage capacity + + + + + Creates a new instance of . + + bucket name + storage capacity + + + + The request class of the operation to set the bucket's tagging. + + + + + Gets the bucket name + + + + + Gets or sets the tags. + + + + + Creates a new intance of . + + bucket name + + + + Creates a new intance of . + + bucket name + tag list + + + + Adds a tag + + + + + + The request class of the operation to set the bucket versioning configuration. + + + + + Gets the bucket name + + + + + Gets the versioning status + + + + + Creates a instance of . + + bucket name + versioning status + + + + The request class of the operation to create a live channel. + + + + + Gets or sets the bucket name + + + + + Gets or sets the channel name + + + + + Gets or sets the description + + + + + Gets or sets the status + + + + + Gets or sets the type + + + + + Gets or sets the frag duration + + + + + Gets or sets the frag count + + + + + Gets or sets playlist name + + + + + Gets or sets role name of snapshot + + + + + Gets or sets destination bucket of snapshot + + + + + Gets or sets notify topic of snapshot + + + + + Gets or sets interval of snapshot + + + + + Set a new instance of + + bucket name + live channel name + + + + The request class of the operation to set the live channel stauts. + + + + + Gets or sets the bucket name + + + + + Gets or sets the channel name + + + + + Gets or sets the status + + + + + Set a new instance of + + bucket name + live channel name + status + + + + The request class of the operation to set the object's tagging. + + + + + Gets the bucket name + + + + + Gets the object key. + + + + + Gets or sets the version id + + + + + Gets or sets the tagging. + + + + + Creates a new intance of . + + bucket name + + + + Adds a tag + + tag + + + + The result class of the operation to get bucket's inventory configuration. + + + + + The bucket inventory configuration. + + + + + The result class of the operation to list bucket's inventory configuration. + + + + + Gets or sets the flag of truncated. + If it's true, means not all configurations have been returned. + + + + + Gets the next continuation token. + Assign this value to the next call's ListBucketInventoryConfigurationRequest.ContinuationToken. + + + + + Gets the inventory configuration iterator. + + + + + Base class for responses that return a stream. + + + + + Disposes of all managed and unmanaged resources. + + + + + An open stream read from to get the data from OSS. In order to + use this stream without leaking the underlying resource, please + wrap access to the stream within a using block. + + + + + Check to see if Body property is set + + + + + Abstract class for Response objects, contains only metadata, + and no result information. + + + + + Returns the status code of the HTTP response. + + + + + Gets and sets the RequestId property. + ID that uniquely identifies a request. Aliyun keeps track of request IDs. If you have a question about a request, include the request ID in your correspondence. + + + + + Returns the content length of the HTTP response. + + + + + Contains additional information about the request, such as the md5 value of the object. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Gets or sets the version id. + + + + + The request class of the operation to set the bucket inventory configuration. + + + + + Gets the bucket name + + + + + Gets the inventory configuration + + + + + Creates a instance of . + + bucket name + inventory configuration + + + + Gets or sets the tag key + + + + + Gets or sets the tag value + + + + + The worm state of a bucket + + + + + The output format of the inventory results + + + + + How frequently inventory results are produced + + + + + Object versions to include in the inventory list + All, the list includes all the object versions, which adds the version-related fields VersionId , IsLatest , and DeleteMarker to the list + Current, the list does not contain these version-related fields. + + + + + The optional fields that are included in the inventory results + + + + + Disaster recovery of OSS Bucket + + + + + The enum of who pays the request fees + + + + + supported signature version definition. V1 is the default one. + + + + + V1 + + + + + V4 + + + + + The mode of restoring an object + + + + + The enum of versioning status + + + + + OSS bucket versioning status indicating that versioning is off for a + bucket. By default, all buckets start off with versioning off. Once you + enable versioning for a bucket, you can never set the status back to + Off". You can only suspend versioning on a bucket once you've enabled. + + + + + OSS bucket versioning status indicating that versioning is enabled for a + bucket. + + + + + OSS bucket versioning status indicating that versioning is suspended for a + bucket. Use the "Suspended" status when you want to disable versioning on + a bucket that has versioning enabled. + + + + + The constructor takes the number of + currently transferred bytes and the + total number of bytes to be transferred + + The number of bytes transferred since last event + The number of bytes transferred + The total number of bytes to be transferred + + + + Gets the percentage of transfer completed + + + + + Gets the number of bytes transferred since last event + + + + + Gets the number of bytes transferred + + + + + Gets the total number of bytes to be transferred + + + + + Returns a string representation of this object + + + + + + The request which is used to append data into an object (existing or non-existing) + + + + + Bucket name getter/setter. + + + + + Object key getter/setter + + + + + Object metadata getter/setter + + + + + Position getter/setter. The position is the start index for the appending. + Initially it could be the length of the object (length could be got from the GetObjectmeta). Then it could be got from the previous result of AppendObjectRequest. + + + + + Gets or sets the init crc. + + The init crc. + + + + The content to append + + + + + Progress callback getter and setter + + + + + Gets or sets the reqeust payer + + + + + Gets or sets the traffic limit, the unit is bit/s + + + + + Creates a new instance of + + bucket name + object key + + + + The result class for appending operation. + + + + + ETag getter/setter. ETag is calculated in the OSS server side by using the 128bit MD5 result on the object content. It's the hex string. + + + + + The next append position + + + + + The CRC value of the object. It's calculated by ECMA-182. + + + + + Gets or sets the version id. + + + + + The request class of the operation to put an object to OSS. + + + + + Gets or sets the bucket name + + + + + Gets or sets the object key + + + + + Gets or sets object content stream + + + + + Gets or sets a value indicating whether this use chunked encoding. + + true if use chunked encoding; otherwise, false. + + + + Gets or sets the transfer progress callback + + + + + Gets or sets the object metadata. + + + + + Gets or sets the process method.The result will be in . + + + + + Gets or sets the reqeust payer + + + + + Gets or sets the traffic limit, the unit is bit/s + + + + + Gets or sets the storage class for object + + + + + Creates a new instance of + + bucket name + object key + content to upload + + + + Creates a new instance of + + bucket name + object key + content to upload + metadata to set + + + + Puts the object result. + + Bucket name. + Key. + Content. + Metadata. + If set to true use chunked encoding. + + + + Returns true if the request has the Process property or has the callback in metadata. + + + + + Returns true if the request has the callback in Metadata property. + + + + + The request class of the operation to set the object ACL. + + + + + Gets the bucket name + + + + + Gets the object key. + + + + + Gets the ACL. + + + + + Gets or sets the reqeust payer + + + + + Gets or sets the version id + + + + + Creates a new instance of . + + bucket name + object key + access control list + + + + OSS object's metadata, which is the collection of 'key,value' pair. + + It includes user's custom metadata, as well as standard HTTP headers such as Content-Length, ETag, etc. + + + + + + 256 bit ASE encryption algorithm. + + + + + Gets the user's custom metadata. + + + In OSS server side, it will add "x-oss-meta-" as the prefix for the keys of custom metadata. + However, here the key in UserMetadata should not include "x-oss-meta-". + And the key is case insensitive--in fact all the keys returned from server will be in lowercase anyway. + For example, for a key MyUserMeta, it will be myusermeta from the result of GetObjectMetadata(). + + + + + Gets HTTP standard headers and their values. + + + + + Gets or sets the last modified timestamp of the OSS object. + + + + + Gets or sets the expiration time of the object. + + + + + Gets or sets the content length of the object. + + + + + Gets or sets the content type of the objeft. It's the standard MIME type. + + + + + Gets or sets the content encoding of the object. + + + + + Gets or sets the value of HTTP Cache-Control header. + + + + + Gets or sets the value of HTTP Content-Disposition header. + + + + + Gets or sets the value of HTTP ETag header. Note that this is set by OSS server. + To set the Content-MD5 value, use HTTP COntent-MD5 header instead. + + + + + Gets or sets the HTTP Content-MD5 header, which is the MD5 summary in Hex string of the object. + + + + + Gets or sets the crc64. + + The crc64. + + + + Gets or sets the server side encryption algorithm. Only AES256 is support for now. + + + + + Gets the object type (Normal or Appendable) + + + + + Gets the object version id + + + + + Creates a new instance of . + + + + + Adds one HTTP header and its value. + + header name + header value + + + + Populates the request header dictionary with the metdata and user metadata. + + + + + + Populates the request header dictionary with the metdata and user metadata. + + + + + + Get the flag which indicates if the metadata specifies the callback. + + The metadata object to check + + + + + Serialize an object of type TRequest to XML stream. + + + + + Deserialize an object of type T from XML stream. + + + + + Deserialize an object of type T, then close the underlying stream. + + + + + TryParseEnum does not exist in .net 2.0. But we need to support .net 2.0 + + The string value to parse from. + The parsed value + True: the parse succeeds; False: the parse fails + + + + The implementation of + that represents the status of an async operation. + + + + + Gets a user-defined object that qualifies or contains information about an asynchronous operation. + + + + + Gets a that is used to wait for an asynchronous operation to complete. + + + + + Gets a value that indicates whether the asynchronous operation completed synchronously. + + + + + Gets a value that indicates whether the asynchronous operation has completed. + + + + + Initializes an instance of . + + The callback method when the async operation completes. + A user-defined object that qualifies or contains information about an asynchronous operation. + + + + Completes the async operation with an exception. + + Exception from the async operation. + + + + When called in the dervied classes, wait for completion. + It throws exception if the async operation ends with an exception. + + + + + When called in the derived classes, notify operation completion + by setting and calling the user callback. + + + + + Disposes the object and release resource. + + + + + When overrided in the derived classes, release resources. + + Whether the method is called + + + + Represents the status of an async operation. + It also holds the result of the operation. + + Type of the operation result. + + + + The result of the async operation. + + + + + Initializes an instance of . + + The callback method when the async operation completes. + A user-defined object that qualifies or contains information about an asynchronous operation. + + + + Gets result and release resources. + + The instance of result. + + + + Sets result and notify completion. + + The instance of result. + + + + Callback body's format type. The OSS will issue a post request to the callback url with the data specified in the request's callbackbody header. + + OSS does not validate the data sent to callback url. + + + + + + Url encoded. + + + + + Json encoded + + + + + The callback header's builder + + + + + Gets or sets the callback url such as “http://callback.oss.demo.com:9000” + + + + + Gets or sets the callback host.By default it's + + + + + Gets or sets the callback body. + + + + + Gets or sets the callback body type. + + + + + Creates a new instance of + + callback url + callback body + + + + Creates a new instance of + + callback url + callback host + callback body + callback body type + + + + Builds the callback header. + + the callback header + + + + The callback variable header builder. + + + + + Gets the callback variable dictionary. + + + The custom parameter's key must start with "x:" and be in lowercase. + + + + + Adds the callback variable + + the custom variable, must start with "x:" + the value of the custom variable. + + + + Builds the callback variables' header value + + The callback variables' header value + + + + Format an instance of to a GMT format string. + + + + + Format a GMT format string to an instance of . + + + + + + Format an instance of to string in iso-8601 format. + + + + + Format a iso-8601 format string to an instance of . + + + + + + Format an instance of to string in unix time format. + + + + + The equvalent delegate of .Net4.0's System.Func. This is to make this code compatible with .Net 2.0 + + + + + The equvalent delegate of .Net 4.0's System.Action. + + + + + Some common utility methods and constants + + + + + Max normal file size: 5G + + + + + Max prefix length + + + + + Marker's max length. + + + + + Max delimiter length. + + + + + Max keys to return in one call. + + + + + Max objects to delete in multiple object deletion call. + + + + + Max CORS rule count per bucket + + + + + Max lifecycle rule count per bucket. + + + + + Max object key's length. + + + + + Max part number's upper limit. + + + + + Default part size. + + + + + Minimal part size in multipart upload or copy. + + + + + Max file path length. + + + + + Min file path + + + + + Check if the bucket name is valid,. + + bucket name + true:valid bucket name + + + + validates the object key + + object key + true:valid object key + + + + validates the object key + + object key + flag + true:valid object key + + + + checks if the endpoint is in IP format. + + endpoint to check + true: the endpoint is ip. + + + + Applies the Url encoding on the key + + the object key to encode + The encoded key + + + + Trims quotes in the ETag + + The Etag to trim + The Etag without the quotes + + + + Compute the MD5 on the input stream with the given size. + + The input stream + the part size---it could be less than the stream size + MD5 digest value + + + + Computes the content crc64. + + The content crc64. + Input. + stream length + + + + Checks if the webpage url is valid. + + The wenpage url to check + true: the url is valid. + + + + Checks if the logging prefix is valid. + + The logging prefix to check + true:valid logging prefix + + + + Sets up the progress listeners + + The content stream + The length of originalStream + The length which has read + The interval at which progress needs to be published + The objects which is trigerring the progress changes + The callback which will be invoked when the progress changed event is trigerred + an object, incase the progress is setup, else returns the original stream + + + + Calls a specific EventHandler in a background thread + + + + + + + + Return the CRC-64 of two sequential blocks, where summ1 is the CRC-64 of the + first block, summ2 is the CRC-64 of the second block, and len2 is the length + of the second block. + + The combined crc + Crc1. + Crc2. + Len2. + + + + Lifecycle rule status + + + + + Enable the rule + + + + + Disable the rule + + + + + Lifecycle rule definition class, which represents one rule of Lifecycle + + + + + Gets or sets the rule Id + + + + + Gets or sets the prefix of the files the rule applied to. + If it's null, then the rule is applied to the whole bucket. + + + + + The rule status + + + + + The expiration days. + + + + + The expiration time. + + + + + Gets or sets the created before date. + + The created before date. + + + + Gets or sets the expired object delete marker. + + The expired object delete marker. + + + + Gets or sets the transition. + + The transition. + + + + Gets or sets the abort multipart upload. + + The abort multipart upload. + + + + Gets or sets the object tags. + + The object tags. + + + + Gets or sets the noncurrent version expiration. + + The noncurrent version expiration. + + + + Gets or sets the noncurrent version transition. + + The noncurrent version transition. + + + + Gets or sets the fitler. + + fitler. + + + + Determines whether the specified is equal to the current . + + The to compare with the current . + true if the specified is equal to the current + ; otherwise, false. + + + + Validate this instance. + + The validate result. + + + + Life cycle expiration. + + + + + Gets or sets the days. + + The days. + + + + Gets or sets the expiration time. + + The expiration time. + + + + Validate this instance. + + The validate result. + + + + Life cycle transition. + + + + + Gets or sets the life cycle expiration. + + The life cycle expiration. + + + + Gets or sets the storage class. + + The storage class. + + + + Gets or sets the IsAccessTime. + + IsAccessTime. + + + + Gets or sets the ReturnToStdWhenVisit. + + ReturnToStdWhenVisit. + + + + Gets or sets the AllowSmallFile. + + AllowSmallFile. + + + + Determines whether the specified is equal to + the current . + + The to compare with the current . + true if the specified is equal to the + current ; otherwise, false. + + + + Life cycle noncurrent version expiration. + + + + + Gets or sets the noncurrent days. + + The noncurrent days. + + + + Life cycle noncurrent version transition. + + + + + Gets or sets the noncurrent days. + + The noncurrent days. + + + + Gets or sets the storage class. + + The storage class. + + + + Gets or sets the IsAccessTime. + + IsAccessTime. + + + + Gets or sets the ReturnToStdWhenVisit. + + ReturnToStdWhenVisit. + + + + Gets or sets the AllowSmallFile. + + AllowSmallFile. + + + + Life cycle Not. + + + + + Gets or sets the Prefixs. + + Prefix. + + + + Gets or sets the Tag. + + Tag. + + + + Life cycle Filter. + + + + + Gets or sets the Not. + + Not. + + + + Gets or sets the ObjectSizeLessThan. + + ObjectSizeLessThan. + + + + Gets or sets the ObjectSizeLessThan. + + ObjectSizeLessThan. + + + + The result class of the operation to list buckets. + + + + + Gets or sets the bucket name prefix(optional). + + + + + Gets or sets the bucket name marker.Its value should be same as the ListBucketsRequest.Marker. + + + + + Gets or sets the max entries to return. + By default it's 100. + + + + + Gets or sets the flag of truncated. If it's true, means not all buckets have been returned. + + + + + Gets the next marker's value. Assign this value to the next call's ListBucketRequest.marker. + + + + + Gets the bucket iterator. + + + + + The request class of the operation to list of the current account. + + + + + Gets or sets the bucket name prefix to list (optional) + + + + + Gets or sets the marker of the bucket name. The buckets to return whose names are greater than this value in lexicographic order. + + + + + Gets or sets the max entries to return. By default is 100. + + + + + Gets or sets the bucket tag + + + + + The match mode enum + + + + + Unknown + + + + + Exactly match + + + + + Match the prefix only + + + + + Match the size range. For example, the policy could be applied the files of size between 1KB to 4KB. + + + + + Tuplre type enum.!-- Currently only two tuple {key:value} and three tuple type (tuple1,tuple2,tuple3) are supported. + + + + + The abstract Condition Item. + + + + + EqualConditionItem definition + + + + + StartwithConditionItem definition. + + + + + Content size's RangeConditionItem definition. + + + + + Conditions list. It specifies all valid fields in the post form. + + + + + Content length range + + + + + The cache control behavior for downloading files + + + + + Content types defined in RFC2616 + + + + + Content disposition behavior + + + + + The content encoding + + + + + Expiration time + + + + + object key + + + + + redirect upon success + + + + + The action status upon success + + + + + The custom metadata prefix + + + + + Adds a condition item with exact MatchMode + + Condition name + Condition value + + + + Adds a condition item with specified MatchMode + + Conditions match mode + Condition name + Condition value + + + + Adds a condition with range match mode. + + Condition name + Range's low end + Range's high end + + + + The request class of the operation to set the bucket's lifecycle configuration. + + + + + Gets the bucket name + + + + + Gets or sets the Lifecycle rule list.Each bucket can have up to 1000 rules. + + + + + Creates a new intance of . + + bucket name + + + + Adds a LifeCycle rule + + + + + + supported protocol definition. HTTP is the default one. + + + + + HTTP + + + + + HTTPs + + + + + The request of the operation to set bucket referer. + + + + + Gets the bucket name. + + + + + Gets the flag of allowing empty referer. + + + + + Gets the referer list. + + + + + Creates the instance of SetBucketRefererRequest + + bucket name + + + + Creates the instance of . + + bucket name + referer list + + + + Creates the instance of . + + bucket name + referer list + allowEmptyReferer flag + + + + Clears the referer list. + + + + + The request class of the operation to delete multiple objects in OSS. + + + + + Gets or sets the bucket name + + + + + Gets quiet mode flag. By default it's true; + + + + + Returns the keys list where the caller could add or remove key + + + + + Gets or sets encoding-type value. By default it's HttpUtils.UrlEncodingType. + + + + + Gets or sets the reqeust payer + + + + + Creates an instance with bucket name and keys. Quiet mode is true by default. + + bucket name + object lists to delete + + + + Creates an instance with bucket name, keys and quiet flag. + + bucket name + object keys to delete + true: quiet mode; false: detail mode + + + + Description of DeleteObjectsResult. + + + + + gets or sets deleted keys + + + + + gets or sets EncodingType + + + + + Deleted object class. Key is its only property. + + + + + Gets or sets deleted key + + + + + The request class of the operation to set the bucket ACL. + + + + + Gets the bucket name + + + + + Gets the ACL + + + + + Creates a instance of . + + bucket name + user acl + + + + The request class of the operation to upload the source object as a part of the target object. + + + + + Gets the target bucket name + + + + + Gets the target key + + + + + Gets the upload Id. + + + + + Gets or sets the part number. + Every part upload will have a part number (from 1 to 10000). + For a given upload id, the part number is the Id of the part and determine the position of the part in the whole file. + If the same part number is uploaded with new data, the original data will be overwritten. + + + + + Gets or sets the part size + Except the last part, other parts' size should be at least 5MB. + + + + + Gets or sets the MD5 checksum for the part's data. + + + + + Gets or sets the source object key. + + + + + Gets or sets the source bucket + + + + + Gets or sets the beginning index of the source object to copy from. + + + + + Gets the constraints of matching ETag. If the source object's ETag matches any one in the list, the copy will be proceeded. + Otherwise returns error code 412 (precondition failed). + + + + + Gets the constraints of non-matching ETag. If the source object's ETag does not match any one in the list, the copy will be proceeded. + Otherwise returns error code 412 (precondition failed). + + + + + Gets or sets the constraints of unmodified timestamp threshold. If the value is same or greater than the actual last modified time, proceed the copy. + Otherwise returns 412 (precondition failed). + + + + + Gets or sets the constraints of modified timestamp threshold. If the value is smaller than the actual last modified time, proceed the copy. + Otherwise returns 412 (precondition failed). + + + + + Gets or sets the reqeust payer + + + + + Gets or sets the traffic limit, the unit is bit/s + + + + + Gets or sets the version id + + + + + The result class of the operation to upload a source file as the target object's one part. + + + + + The ETag of the source object + + + + + The part number of the target object + + + + + Gets or sets the crc64. + + The crc64. + + + + Gets or sets the length. + + The length. + + + + Gets the wrapper class of the part number and ETag. + + + + + Gets or sets the copy source version id. + + + + + The request to abort a multipart upload. It specifies all parameters needed for the operation. + + + + + Gets 's name. + + + + + getter + + + + + UploadId getter + + + + + Gets or sets the reqeust payer + + + + + Creates a new intance with bucket name, object key and upload Id. + + bucket name + object name + Upload Id to cancel. It could be got from + + + + The class defines "Access control list"(ACL). + It contains a list of instances, each specifies a and + a . + + + + + Gets the iterator of list. + + + + + Owner getter and setter + + + + + ACL getter or setter + + + + + Constructor. + + + + + Grants permission to a instance with specified . + Currently the supported grantee is . + + The grantee + The permission + + + Revoke all permissions on a specific grantee. + @param grantee + The grantee, currently only is supported. + + Invoke the instance's all permissions. + + The grantee instanc + + + + Return the string that has the owner and ACL list information. + + The serialized information in a string + + + + Bucket is the OSS namespace, which could be thought as storage space. + + + + Bucket is globally unique across the whole OSS and is immutable. Every object must be stored at one and only one bucket. + An application, such as picture sharing website, could have one or more bucket. And each account could only create up to 10 buckets. + But in every bucket, there's no limit in terms of data size and object count. + + + Bucket naming rules + + Can only have lowercase letter, number or dash (-) + Can only start with lowercase letter or number + The length must be between 3 and 63 + + + + + + + Bucket location getter/setter + + + + + Bucket name getter/setter + + + + + Bucket getter/setter + + + + + Bucket creation time getter/setter + + + + + Creats a new instance with the specified name. + + Bucket name + + + + Returns the bucket's serialization information in string. + + The serialization information in string + + + + The result class of the operation to get bucket logging config + + + + + Target bucket. + + + + + Target logging file's prefix. If it's empty, the OSS system will name the file instead. + + + + + The result class of the operation to get bucket's static website config. + + + + + The index page for the static website. + + + + + The error page for the static website. + + + + + The enum of canned access control list. + + This is a quick way to grant permissions to all users + + + + + + Private read and write. + + + + + Public read, private write. + + + + + public read or write---everyone can read and write the data. + + + + + Default permission, inherits from the bucket. + + + + + The request class of operation to complete a multipart upload + + + + + Bucket name getter/setter + + + + + Object key getter/setter + + + + + Upload Id's getter/setter. + + + + + list getter. + + + + + getter/setter + + + + + Gets or sets the reqeust payer + + + + + Creates a instance by bucket name, object key and upload Id. + + bucket name + object key + Upload Id, which is got from + + + + Flag of containing the http body in the response. + + + + + Flag of containing the callback parameters in the request. + + + + + The result class of operation to complete a multipart upload. + + + + + Bucket name getter/setter + + + + + Object key's getter/setter. + + + + + The new object' URL + + + + + The request class of the operation to copy an existing object to another one. The destination object could be a non-existing or existing object. + + + + + Source bucket name's getter/setter. + + + + + Source object key's getter/setter. + + + + + Destination bucket name's getter/setter. + + + + + Destination object key's getter/setter. + + + + + Destination object's metadata getter/setter + + + + + ETag maching contraints---that is for the copy operation to execute, the source object's ETag must match one of the ETags in this property. + If not, return 412 as HTTP code (precondition failed) + + + + + ETag non-matching contraints---that is for the copy operation to execute, the source object's ETag must not match any of the ETags in this property. + If matches any, return 412 as HTTP code (precondition failed) + + + + + Unmodified timestamp threshold----that is for the copy operation to execute, the file's last modified time must be smaller than this property; + Otherwise return 412 as HTTP code (precondition failed) + + + + + Modified timestamp threshold----that is for the copy operation to execute, the file's last modified time must be same or greater than this property; + Otherwise return 412 as HTTP code (precondition failed) + + + + + Gets or sets the reqeust payer + + + + + Gets or sets the traffic limit, the unit is bit/s + + + + + Gets or sets the source key version id + + + + + Creates a new instance + + source object's bucket name + source object key + destination object's bucket name + destination object key + + + + Result class for the copy object operation. + + + + + Last modified timestamp getter/setter + + + + + New object's ETag + + + + + Gets or sets the version id. + + + + + Gets or sets the copy source version id. + + + + + Defining a cross origin resource sharing rule + + + + + Allowed origins. One origin could contain at most one wildcard (*). + + + + + Allowed HTTP Method. Valid values are GET,PUT,DELETE,POST,HEAD. + This property is to specify the value of Access-Control-Allow-Methods header in the preflight response. + It means the allowed methods in the actual CORS request. + + + + + Get or set Allowed Headers. + This property is to specify the value of Access-Control-Allowed-Headers in the preflight response. + It defines the allowed headers in the actual CORS request. + Each allowed header can have up to one wildcard (*). + + + + + Get or set exposed headers in the CORS response. Wildcard(*) is not allowed. + This property is to specify the value of Access-Control-Expose-Headers in the preflight response. + + + + + HTTP Access-Control-Max-Age's getter and setter, in seconds. + The Access-Control-Max-Age header indicates how long the results of a preflight request (OPTIONS) can be cached in a preflight result cache. + The max value is 999999999. + + + + + Adds one allowed origin. + + Allowed origin + + + + Adds one allowed HTTP method + + allowed http method, such as GET,PUT,DELETE,POST,HEAD + + + + Adds a allowed header. + + allowed header + + + + adds an expose header. + + an expose-header + + + + Gets the wildcard count from the parameter items. + + items to count wildcard from + wildcard count + + + + Checks if a method is allowed. + + the http method to check + True:the method is allowed; False: The method is not allowed + + + + The request class of the operation to sign the URL + + + + + HTTP method getter/setter. + + + + + Bucket name getter/setter + + + + + Object key getter/setter + + + + + Getter/setter of the target file's content-type header. + + + + + Getter/setter of the target file's MD5. + Note that the setter should only be called by the SDK internally. + + + + + Getter/setter of the expiration time of the signed URL. + + + + + Process getter/setter. + Process is specific to image files on which a specific operation (such as resize, sharpen,etc ) could be applied. + + + + + Callback getter/setter, encoded in base64 + + + + + Callback parameters, in base64 + + + + + ResponseHeaders getter/setter + Response headers is to ask OSS service to return these headers (and their values) in the response. + + + + + Gets or sets the UserMetadata dictionary. + The SDK will automatically add the x-oss-meta- as the prefix of the metadata. + So the key in this property should not include x-oss-meta- prefix anymore. + + + + + Gets or sets query parameters + + + + + Add a user metadata + The metaItem should not start with 'x-oss-meta-'. + + meta name + value of the metaItem + + + + Add a query parameter + + param name + param value + + + + Creates a new instance of . + + bucket name + object key + + + + Creates a instance. + + bucket name + object key + http method + + + + The request class for getting object from OSS. + + + + + Gets or sets name. + + + + + Gets or sets key + + + + + Gets range to read + + + Calls to set. If it's not set, returns null. + + + + + Gets or sets 's process method (such as resize, sharpen, etc) + + + + + Gets or sets "If-Unmodified-Since" parameter + + + It means if its value is same or later than the actual last modified time, the file will be downloaded. + Otherwise, return precondition failed (412). + + + + + Gets or sets "If-Modified-Since". + + + It means if its value is smaller the actual last modified time, the file will be downloaded. + Otherwise, return precondition failed (412). + + + + + Gets or sets the progress callback + + + + + Gets the ETag matching constraint list. If the actual ETag matches any one in the constraint list, the file will be downloaded. + Otherwise, returns precondition failed. + The corresponding http header is "If-Match". + + + + + Gets the ETag non-matching constraint list. If the actual ETag does not match any one in the constraint list, the file will be downloaded. + Otherwise, returns precondition failed. + The corresponding http header is "If-None-Match". + + + + + Gets the overrided response headers. + + + + + Gets or sets the reqeust payer + + + + + Gets or sets the traffic limit, the unit is bit/s + + + + + Gets or sets the version id + + + + + Creates a new instance of . + + bucket name + object key + + + + Creates a new instance of . + + bucket name + object key name + The process method for image file in OSS + + + + Sets the read range of the target object (optional). + It follows the HTTP header "Range"'s semantic + + + The start value in the range. + + If the value is non-negative, it means the start index of the object to read. + If the value is -1, it means the start index is determined by end parameter and thus the end parameter must not be -1. + For example, if the end is 100, then the start is bytes=-100 (bytes is the total length of the object). It means to read the last 100 bytes of the object. + + + + The end value of the range. And it must be smaller than the total length of the object. + + If the value is non-negative, it means the end index of the object to read. + If the value is -1, it means the end is the object's last byte and start must not be -1. + For example, if the start is 99 and end is -1, it means to read the whole object except the first 99 bytes. + + + + + + Populate the http headers according to the properties of this object. + + The generated http headers + + + + The access control grant class definition + + + + + The grantee instance + + + + + The granted permission + + + + + Creates a new instance of . + + the grantee instance----cannot be null + the permission instance + + + + Checks if two instances equal. + + The other grant instance to compare with + + + + + Gets the hash code + + hash code + + + + It defines a group of user that could be granted with permission. + + + + + The grantee's identifier. + + + Only supports gets operation. Calling the setter will trigger . + + + + + AllUsers means the or could be accessed by anonymous users. + That is all users could access the resource. + + + + + Sets the identifier. + + the grantee's Id + + + + Checks if two instances equal + + The other instance to compare with + + + + + Gets the hash code. + + hash code + + + + The interface for the grantee entity + + + + + Gets or sets the grantee entity's identifier. + + + + + The request class of the operation to initiate a multipart upload + + + + + Gets or sets the bucket name to upload files to. + + + + + Gets or sets the target key. + + + + + Gets or sets the encoding-type value + + + + + Gets or sets + + + + + Gets or sets the reqeust payer + + + + + Creates a new instance of . + + bucket name + object key + + + + Creates a new instance of . + + bucket name + object key + Object's + + + + The result class of the operation to initiate a multipart upload. + + + + + Gets or sets bucket name + + + + + Gets or sets the object key + + + + + Gets or sets the upload Id + + + + + The Object Storage Service (OSS) entry point interface. + + + + OSS is the highly scalable, secure, inexpensive and reliable cloud storage service. + This interface is to access all the functionality OSS provides. + The same functionality could be done in web console. + Multimedia sharing web app, network disk, or enterprise data backup app could be easily built based on OSS. + + + OSS website:http://www.aliyun.com/product/oss + + + + + + Switches the user credentials + + The credential instance + + + + Sets the endpoint + + Endpoint value + + + + Creates a new bucket + + The bucket name. It must be globably unique. + instance + + + + Creates the bucket with specified storage class. + + The bucket. + Bucket name. + Storage class. + + + + Creates a bucket + + The bucket. + + + + + Deletes a empty bucket.If the bucket is not empty, this will fail. + + The bucket name to delete + + + + List all buckets under the current account. + + All instances + + + + Lists all buckets according to the ListBucketsRequest, which could have filters by prefix, marker, etc. + + instance + instance + + + + Gets the bucket information. + + The bucket information. + Bucket name. + + + + Gets the bucket stat. + + The bucket stat. + Bucket name. + + + + Sets the bucket ACL + + name + instance + + + + Sets the bucket ACL + + + + + + Gets the bucket ACL + + name + Bucket ACL instance + + + + Gets the bucket location + + bucket name + bucket location + + + + Gets the bucket metadata + + bucket name + metadata + + + + Sets the CORS rules for the + + + + + + Gets the CORS rules. + + bucket name + CORS rules + + + + Deletes the CORS rules on the + + name + + + + Sets logging config + OSS will log the access information on this bucket, according to the logging config + The hourly log file will be stored in the target bucket. + + + + + + Gets the bucket logging config + + name + The logging config result + + + + Deletes the logging config + + name + + + + Sets static website config + + instance + + + + Gets static website config + + name + instance + + + + Deletes the static website config + + 的名称。 + + + + Sets the referer config + + The requests that contains the Referer whitelist + + + + Gets the referer config + + name + Referer config + + + + Sets lifecycle rule + + the instance + + + + Deletes the bucket's all lifecycle rules. + + Bucket name. + + + + Gets lifecycle instance. + + bucket name + Lifecycle list + + + + Sets storage capacity + + instance + + + + Gets storage capacity + + name + instance + + + + Checks if the bucket exists + + name + + True when the bucket exists under the current user; + Otherwise returns false. + + + + + Sets policy + + instance + + + + Gets policy + + name + instance + + + + Deletes policy. + + Bucket name. + + + + Sets bucket tagging + + instance + + + + Deletes the bucket's tagging. + + Bucket name. + + + + Deletes the bucket's tagging. + + DeleteBucketTaggingRequest. + + + + Gets bucket tagging + + name + instance + + + + Sets bucket request payment + + instance + + + + Gets bucket request payment + + name + + + + + Sets bucket encryption rule + + instance + + + + Deletes bucket encryption rule + + Bucket name. + + + + Gets bucket encryption rule + + name + instance + + + + Sets bucket versioning + + instance + + + + Gets bucket versioning + + name + instance + + + + Sets bucket inventory configuration + + instance + + + + Deletes bucket inventory configuration + + instance + + + + Gets bucket inventory configuration + + instance + instance + + + + Gets bucket inventory configuration + + instance + instance + + + + InitiateBucketWorm + + instance + instance + + + + Gets AbortBucketWorm + + Bucket name. + + + + CompleteBucketWorm + + instance + + + + ExtendBucketWorm + + instance + + + + GetBucketWormResult + + Bucket name. + instance + + + + Lists all objects under the + + name + list + + + + Begins the async call to list objects.The returned object is type of OssObjectSummary. + + name + list + callback when the list is done + state object in the callback + IAsyncResult instance. + + + + Lists object with specified prefix + + name + prefix + instances list + + + + Begins the async call to list objects under the specified bucket and prefix + The returned object is type of OssObjectSummary. + + name + prefix + list + callback instance + callback state + IAsyncResult instance + + + + Lists objects according to the ListObjectsRequest. + The returned object is type of OssObjectSummary. + + instance + list + + + + Begins the async call to list objects under the specified with specified filters in + + instance + list + callback instance + callback state object + + + + Ends the async call of listing objects. + + The asyncResult instance returned by BeginListObjects call + instance + + + + Lists object vesions according to the ListObjectVersionsRequest. + The returned object is type of OssObjectSummary. + + instance + list + + + + Puts object to the specified bucket with specified object key. + + specified bucket name + + + instance + + + + Begins the async call of uploading object to specified bucket. + + target name + + + callback instance + callback state + The IAsyncResult instance for EndPutObject() + + + + Uploads the content to object under the specified bucket and object key. + + name + + + metadata + instance + + + + Upload a according to . + + instance + instance + + + + Begins the async call to upload object + + name + + + metadata + callback instance + callback state + IAsyncResult instance for EndPutObject() + + + + Begins the async call to upload object + + instance + callback object + state object + IAsyncResult instance for EndPutObject() + + + + Uploads a local file to OSS under the specified bucket + + name + + local file path to upload + instance + + + + Begins the async call to upload local file to OSS under the specified bucket. + + name + + local file path to upload + callback instance + callback state + IAyncResult instance + + + + Uploads a local file with specified metadata to OSS. + + name + + local file path + metadata + instance + + + + Begins the async call to upload object with specified metadata. + + name + + local file to upload + metadata + callback instance + callback state + IAsyncResult instance for EndPutObject + + + + Ends the async call to upload the object. + When it's called, the actual upload has already been done. + + IAsyncResult instance + instance + + + + Deprecated method.Please use ResumableUploadObject. + Uploads the specified file with optional part size. + If the file size is not bigger than the part size, then use normal file upload. + Otherwise use multipart upload. + + bucket name + target object key + local file path to upload + metadata + Part size.If it's not specified, then use . + If the part size is less than , it will be changed to automatically. + + instance + + + + Deprecated method. Use ResumableUploadObject instead. + Upload the specified file to OSS. + If the file size is same or less than the part size, use normal file upload instead. + Otherwise it will use multipart file upload. + + name + + + metadata + Part size. If it's not specified or the value is less than , + then use instead. + + instance + + + + Uploads the file via the signed url. + + Signed url + File to upload + instance + + + + Uploads the instream via the signed url. + + Signed url + content stream + instance + + + + Uploads the file via the signed url with the metadata. + + The signed url + Local file path + instance + metadata + + + + Uploads the stream via the signed url with the metadata. + + Signed url + content stream + instance + metadata + + + + Resumable file upload. It automaticlly uses multipart upload upon big file and also support resume upload after a failed upload. + + instance + instance + file to upload + metadata + Check point dir. If it's not specified, then no checkpoint file is saved and thus resumable file upload is not supported. + Part size. If it's not specified, or the size is smaller than + then is used instead. + + instance + + + + Resumable file upload. It automaticlly uses multipart upload upon big file and also support resume upload after a failed upload. + + name + + . Content is disposed after the call finishes. + metadata + Check point dir. If it's not specified, then no checkpoint file is saved and thus resumable file upload is not supported. + Part size. If it's not specified, or the size is smaller than + then is used instead. + + instance + + + + Resumables the upload object. + The request.UploadStream will be disposed once the call finishes. + + The upload object. + Upload Request. + + + + Appends object to OSS according to the + + instance + result + + + + Begins the async call to append object to OSS. + + instance + callback instance + state object + IAsyncResut instance for EndAppendObject call + + + + Ends the async call to append object to OSS. WHen it's called, the actual upload has been done. + + The IAsyncResult instance returned from BeginAppendObjet + instance + + + + Creates the symlink of the target object + + Bucket name. + Symlink. + Target. + instance + + + + Creates the symlink of the target object + + Create symlink request. + instance + + + + Gets the target file of the symlink. + + Bucket name. + Symlink + OssSymlink object + + + + Gets the target file of the symlink. + + Get symlink request. + OssSymlink object + + + + Gets object + + bucket name + + instance + + + + Gets object via signed url + + The signed url of HTTP GET method + instance + + + + Gets object via the bucket name and key name in the instance. + + The request parameter + instance. The caller needs to dispose the object. + + + + Begins the async call to get object according to the instance. + + request parameter + callback instance + callback state + IAsyncResult instance for EndGetObject() + + + + Begins the async call to get object by the bucket and key information. + + bucket name + object key + callback instance + state instance + ISyncResult instance + + + + Ends the async call to get the object. + + The AsyncResult instance returned from BeginGetObject() + instance + + + + Gets the object and assign the data to the stream. + + request parameter + output stream + metadata + + + + Download a file. + Internally it may use multipart download in case the file is big + + The metadata object + DownloadObjectRequest instance + + + + Gets metadata. + + name + + metadata + + + + Gets metadata. + + GetObjectMetadataRequest instance + metadata + + + + Gets metadata. + + GetObjectMetadataRequest instance + metadata + + + + Deletes + + name + + instance + + + + Deletes + + the request parameter + instance + + + + Deletes multiple objects + + the request parameter + delete object result + + + + Deletes multiple objects with version id + + the request parameter + delete object result + + + + copy an object to another one in OSS. + + The request parameter + copy object result + + + + Begins the async call to copy an object + + the request parameter + callback instance + callback state + The IAsyncResult instance for EndCopyObject() + + + + Ends the async call to copy an object. + + The IAsyncResult instance returned from BeginCopyObject() + instance + + + + Deprecated. Use ResumableCopyObject instead. + Copy the specified file with optional checkpoint support. + + the request parameter + part size. If the part size is not specified, or less than , + will be used instead. + + The checkpoint file folder. If it's not specified, checkpoint information is not stored and resumnable upload will not be supported in this case. + instance. + + + + Resumable object copy. + If the file size is less than part size, normal file upload is used; otherwise multipart upload is used. + + request parameter + checkpoint file folder + The part size. + + instance + + + + Modify the object metadata. + + name + + new metadata + check point folder. It must be specified to store the checkpoint information + Part size, it's no less than + + + + + Checks if the object exists + + name + + true:object exists;false:otherwise + + + + Sets the object ACL + + name + key + instance + + + + Sets the object ACL + + + + + + Gets the object ACL + + name + + instance + + + + Gets the object ACL + + + + + + Restores the object. + + The object. + Bucket name. + Key. + + + + Restores the object. + + The object. + + + + + Sets the object tagging + + instance + + + + Gets the object tagging + + name + + instance + + + + Gets the object tagging + + instance + instance + + + + Deletes object tagging + + name + + + + + Deletes the object tagging + + instance + + + + Gets the contents of a object based on a SQL statement. + + instance + + + + Creates the meta of a select object + + instance + + + + Processes the object + + instance + instance + + + + Generates a signed url + + request parameter + The signed url. The user could use this url to access the object directly + + + + Generates the signed url with default expiration time (15 min) that supports HTTP GET method. + + Bucket name + Object key + Signed uri + + + + Generates the pre-signed GET url with specified expiration time + + Bucket name + Object key + Uri expiration time + signed url + + + + Generates the pre-signed url with specified expiration time that supports the specified HTTP method + + Bucket name + Object key + HTTP method + signed url + + + + Generates the presigned url with specified method and specified expiration time. + + Bucket name + Object key + Uri expiration time + HTTP method + signed url + + + + Generates the post policy + + policy expiration time + policy conditions + policy string + + + + Lists ongoing multipart uploads + + request parameter + instance + + + + Initiate a multipart upload + + request parameter + instance + + + + Aborts a multipart upload + + request parameter + + + + Uploads a part + + request parameter + instance + + + + Begins the async call to upload a part + + request parameter + callback instance + callback state + IAsyncResult instance for EndUploadPart() + + + + Ends the async call to upload a part. + + IAsyncResult instance returned from BeginUploadPart() + instance + + + + Copy an existing object as one part of a multipart upload. + + request parameter + instance + + + + Begins the async call to copy an existing object as one part of a multipart upload. + + request parameter + callback instance + callback state + IAsyncResult instance for EndUploadPartCopy() + + + + Ends the async call to copy an existing object as one part of a multipart upload. + + IAsyncResult instance + The upload result + + + + Lists successfully uploaded parts of a specific upload id + + request parameter + instance + + + + Completes a multipart upload. + + the request parameter + instance + + + + Creates a live channel + + instance + instance + + + + Lists live channels + + instance + instance + + + + Deletes a live channel + + instance + + + + Sets the live channel status + + instance + + + + Gets the live channel information + + instance + instance + + + + Gets the live channel status + + instance + instance + + + + Gets the live channel history + + instance + instance + + + + Creates a vod playlist + + instance + + + + Gets a vod playlist + + instance + instance + + + + Generates a rtmp signed url + + instance + The signed url. The user could use this url to push stream directly + + + + The request class of the operation to list ongoing multipart uploads. + + + + + Gets the bucket name that these multipart uploads belong to. + + + + + Gets or sets the delimiter for grouping the result. + + + + + Gets or sets the max entries to list. + By default it's 1000. The max value is 1000. + + + + + Gets or sets the key marker. + The key marker and upload id marker filter the multipart uploads to return. + If the upload-id-marker is not set, then the returned uploads whose target object name are greater than key-marker. + If the uploader-id-marker is set, then beside the target object's requirement above, the returned uploads Ids must be greater than the upliad-id-marker. + + + + + Gets or sets the target object's prefix of these multipart uploads. + + + + + Gets or sets upload-id-marker. + The key marker and upload id marker filter the multipart uploads to return. + If the key-marker is not set, the upload-id-marker is ignored by OSS. + If the key marker is set, then: + All target objects' name must be greater than key-marker value in lexicographic order. + And all the Upload IDs returned must be greater than upload-id-marker. + + + + + Gets or sets encoding-type value. + + + + + Gets or sets the reqeust payer + + + + + Creates an instance of . + + bucket name + + + + The request class of the operation to list objects' summary() + + + + + Gets or sets bucket name + + + + + Gets or sets the object name prefix. The names of the returned object must be prefixed by this value. + It's optional. If it's not set, then there's no requirement on the object name. + + + + + Gets or sets the marker value. The name of returned objects must be greater than this value in lexicographic order. + + + + + Gets or sets the max entries to return. + By default it's 100. + + + + + Gets or sets the delimiter for grouping the returned objects based on their keys. + + + + + Gets or sets encoding-type. + + + + + Gets or sets the reqeust payer + + + + + Creates an instance of . + + bucket name + + + + The request class of operation to list parts of a ongoing multipart upload. + + + + + Gets or sets the bucket name + + + + + Gets or sets the target object key + + + + + Gets or sets the max parts to return. + + + + + Gets or sets the part number marker. It will only list the parts whose numbers are greater than the property. + + + + + Gets encoding-type. + + + + + Gets UploadId. + + + + + Gets or sets the reqeust payer + + + + + Creates an instance of . + + bucket name + target object key + upload Id + + + + Referer Configuration + + + + + Flag of allowing empty referer + + + + + Gets or sets the referer list + + + + + referer list model + + + + + referer list + + + + + The mutipart upload class definition. + + + + + Gets or sets the target object's key. + + + + + Gets or sets the upload Id. + + + + + Gets or sets the target object's storage class. + + + + + The initiated timestamp of the multipart upload. + + + + + Gets the serialization string + + the serilization string + + + + The result class of the operation to list ongoing multipart uploads. + + + + + bucket name + + + + + The key marker from . + + + + + The delimiter from + + + + + The prefix from + + + + + The upload Id marker from . + + + + + The max upload count from + + + + + The flag which indciates if there's more data to return in OSS server side. + “true” means there's more data to return. + “false” means no more data to return. + + + + + Gets the next key marker value. If the IsTruncated is true, this could be the next list call's KeyMarker value. + + + + + Gets the next upload id marker value. If the IsTruncated is true, this value could be the next list call's UploadIdMarker value. + + + + + The iterator of all multipart upload returned. + + + + + Gets all the common prefixes (which could be thought as virtual 'folder'). + + + + + Creates a new instance of . + + bucket name + + + + Adds a instance---internal only. + + a multipart upload instance + + + + Adds a prefix---internal only. + + The prefix + + + + The result class of the operation to list objects. + + + + + Gets bucket name + + + + + Gets the next maker value for the value of in the next call. + If the result is not truncated, this value is null. + + + + + Obsolete property. + + + + + Flag of truncated result. + True: the result is truncated (there's more data to list). + False: no more data in server side to return. + + + + + The object key's marker. The value comes from . + + + + + The max keys to list. The value comes from . + + + + + The object key's prefix. The value comes from . + + + + + The delimiter for grouping object. The value comes from . + + + + + The iterator of that meet the requirements in the ListOjectRequest. + + + + + The common prefixes in the result. The objects returned do not include the objects under these common prefixes (folders). + + + + + Creates a new instance of . + + name + + + + The OSS's access entry point interface's implementation. + + + + + Creates an instance of with OSS endpoint, access key Id, access key secret (cound be found from web console). + + OSS endpoint + OSS access key Id + OSS key secret + + + + Creates an instance of with OSS endpoint, access key Id, access key secret (cound be found from web console) and STS token. + + OSS endpoint + STS's temp access key Id + STS's temp access key secret + STS security token + + + + Creates an instance of with OSS endpoint, access key Id, access key secret and client configuration. + + OSS endpoint + OSS access key Id + OSS access key secret + client side configuration + + + + Creates an instance of with OSS endpoint, access key Id, access key secret (cound be found from web console) and STS token. + + OSS endpoint + STS's temp access key Id + STS's temp access key secret + STS security token + client side configuration + + + + Creates an instance with specified credential information. + + OSS endpoint + Credentials information + + + + Creates an instance with specified credential information and client side configuration. + + OSS endpoint + Credentials provider + client side configuration + + + + Creates an instance with specified endpoint, access key Id and access key secret. + + OSS endpoint + OSS access key Id + OSS access key secret + + + + Creates an instance with specified endpoint, access key Id and access key secret and STS token. + + OSS endpoint + STS access key Id + STS security token + STS security token + + + + Creates an instance with specified endpoint, access key Id and access key secret and configuration. + + OSS endpoint + OSS access key id + OSS access key secret + client side configuration + + + + Creates an instance with specified endpoint, access key Id, access key secret, STS security token and configuration. + + OSS endpoint + STS access key + STS access key secret + STS security token + client side configuration + + + + Creates an instance with specified endpoint and credential information. + + OSS的访问地址。 + Credentials提供者。 + + + + Creates an instance with specified endpoint, credential information and credential information. + + OSS endpoint + Credentials information + client side configuration + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Base class for OSS's object. + + + + In OSS, every file is an object. + Object consists of key, data and metadata. Key is the object name which must be unique under the bucket. + Data is the object's content. And user metadata is the key-value pair collection that has the object's additional description. + + + + + + Gets or sets object key. + + + + + Gets or sets object's bucket name + + + + + Gets or sets object's metadata. + + + + + Gets or sets object's content stream. + + + + + Creates a new instance of ---internal only. + + + + + Creates a new instance of with the key name. + + + + + 's summary information, no object data. + + + + + Gets or sets the bucket name + + + + + Gets or sets the object key. + + + + + Gets or sets the ETag which is the MD5 summry in hex string of the object. + + + + + Gets or sets the size of the object in bytes. + + + + + Gets the last modified time. + + + + + Gets the object's storage class. + + + + + Get's the object's . + + + + + Creates a new instance of . + + + + + Gets the serialization result in string. + + serialization result in string + + + + 一个强类型的资源类,用于查找本地化的字符串等。 + + + + + 返回此类使用的缓存的 ResourceManager 实例。 + + + + + 重写当前线程的 CurrentUICulture 属性,对 + 使用此强类型资源类的所有资源查找执行重写。 + + + + + 查找类似 Invalid bucket name. The bucket naming rules: + 1) Can only contain lowercase letter, number or dash(-); + 2) Starts and ends with lowercase letter or number; + 3) The length must be between 3 to 63 bytes. 的本地化字符串。 + + + + + 查找类似 Not supported protocol in the endpoint. The supported protocols are HTTP or HTTPS. So the endpoint must start with "http://" or "https://". 的本地化字符串。 + + + + + 查找类似 Invalid Object Key. Its length must be between 1 to 1023. 的本地化字符串。 + + + + + The owner of the OSS object. + + + + + Gets or sets the owner Id. + + + + + Gets or sets the owner name. + + + + + Creates a new instance of ---internal only,. + + + + + Creates a new instance of with owner id and name. + + Owner id. + Owner display name + + + + Gets serialization result in string. + + serialization result in string + + + + The part's summary information in a multipart upload. It does not have the actual content data. + + + + + Parts number. + + + + + Part's last updated time (typically it's just the upload time) + + + + + The Etag of the part content. + + + + + Size of the part content, in bytes. + + + + + The serialization string + + the serialization string + + + + Gets the instance which consists of the part number and the ETag. + + + + + The class consists of part ETag and Part number. It's used in the request to complete the multipart upload. + + + + + Gets or sets the part number. + + + + + Gets or sets the ETag, which is the 128 bit MD5 digest in hex string. + + + + + Gets or sets the crc64. + + The crc64. + + + + Gets or sets the length. + + The length. + + + + Creates a new instance of . + + Part number + Etag + crc64 + length + + + + The result class of the operation to list the parts of a multipart upload. + + + + + Gets bucket name. + + + + + Gets target object key. + + + + + Gets the value from . + + + + + Gets the value from . + + + + + If the result does not have all data, the response will have the value of this property for the next call to start with + That is assign this value to the PartNumberMarker property in the next call. + + + + + The max parts to return. The value comes from . + + + + + Flag if the result is truncated. + “true” means it's truncated;“false” means the result is complete. + + + + + Gets the parts iterator. + + + + + Adds a information---internal only + + one part instance + + + + Creates a new instance of ---internal only. + + + + + Permission enum definition + + + + + read only + + + + + ful control + + + + + The request class of the operatoin to upload an object + + + + + Gets or sets the Etag. + + + + + Gets or sets the version id. + + + + + The class to contains the headers the caller hopes to get from the OSS response. + + + + + Gets or sets content-type. If it's not specified, returns null. + + + + + Gets or sets content-language.If it's not specified, returns null. + + + + + Gets or sets the expires header. If it's not specified, returns null. + + + + + Gets or sets the cache-control header.If it's not specified, returns null. + + + + + Gets or sets the Content-Disposition header. + + + + + Gets or sets the Content-Encoding header. + + + + + The request class of the operation to set the bucket CORS + + + + + Gets bucket name + + + + + Gets or sets the CORS list. Each bucket can have up to 10 rules. + + + + + Creates a new instance of. + + bucket name + + + + Add a CORRule instance. + + + + + + The request class of the operation to set bucket logging configuration. + + + + + Gets bucket name + + + + + Gets the target bucket name of the logging file + + + + + Gets the target prefix. + + + + + Creates a new instance of . + + bucket name + target bucket + target prefix + + + + The request class of the operation to set the bucket static website configuration + + + + + Gets the bucket name + + + + + Index page + + + + + Error page + + + + + Website configuration in xml format + + + + + Creates a new instance of . + + bucket name + index page + error page + + + + Creates a new instance of . + + bucket name + website configuration in xml format + + + + Sign HTTP method enum definition + + + + + Represents HTTP GET. Default value. + + + + + Represents HTTP DELETE. + + + + + Represents HTTP HEAD. + + + + + Represents HTTP POST. + + + + + Represents HTTP PUT. + + + + + The request class of the operation to upload part + + + + + Gets the bucket name + + + + + Gets the object key + + + + + Gets the upload Id + + + + + Gets the part number which is between 1 to 10000. + Each part has the Part number as its Id and for a given upload Id, the part number determine the part's position in the whole file. + If there's another part upload with the same part number under the same upload Id, the existing data will be overwritten. + + + + + Gets or sets the part size. + Except the last part, all other parts size are at least 5MB. + + + + + Gets or sets the part data's MD5. + + + + + Gets or sets the part's input stream. + + + + + Gets or sets the progress callback. + + + + + Gets or sets the reqeust payer + + + + + Gets or sets the traffic limit, the unit is bit/s + + + + + The result class of the operation to upload part. + + + + + Gets or sets Object ETag + + + + + Gets or sets Part number + + + + + Gets or sets the crc64. + + The crc64. + + + + Gets or sets the length. + + The length. + + + + Gets the PartEtag instance which consists of a part number and the part's ETag + + + + + 一个强类型的资源类,用于查找本地化的字符串等。 + + + + + 返回此类使用的缓存的 ResourceManager 实例。 + + + + + 重写当前线程的 CurrentUICulture 属性,对 + 使用此强类型资源类的所有资源查找执行重写。 + + + + + 查找类似 The EndOperation has been called on this asyncResult. 的本地化字符串。 + + + + + 查找类似 The parameter is empty or null. 的本地化字符串。 + + + + + 查找类似 The response is invalid or unable to parse. 的本地化字符串。 + + + + + 查找类似 Unknown error is returned from Server. 的本地化字符串。 + + + + + 查找类似 xlsx application/vnd.openxmlformats-officedocument.spreadsheetml.sheet + xltx application/vnd.openxmlformats-officedocument.spreadsheetml.template + potx application/vnd.openxmlformats-officedocument.presentationml.template + ppsx application/vnd.openxmlformats-officedocument.presentationml.slideshow + pptx application/vnd.openxmlformats-officedocument.presentationml.presentation + sldx application/vnd.openxmlformats-officedocument.presentationml.slide + docx application/vnd.openxmlformats-of [字符串的其余部分被截断]"; 的本地化字符串。 + + + + + Storage class of OSS Bucket + + + + + The bucket information class + + + + this is to map the XML structure like below: + + + .. + + + + + + Bucket location getter/setter + + + + + Bucket name getter/setter + + + + + Bucket getter/setter + + + + + Bucket creation time getter/setter + + + + + Gets or sets the extranet endpoint. + + The extranet endpoint. + + + + Gets or sets the intranet endpoint. + + The intranet endpoint. + + + + Gets or sets the storage class. + + The storage class. + + + + Gets or sets the access control list. + + The access control list. + + + + Gets or sets the disaster recovery. + + The access control list. + + + + Gets or sets server-side encryption rule. + + The access control list. + + + + Gets or sets versioning status. + + bucket versioning status. + + + + Creats a new instance with the specified name. + + Bucket name + + + + Initializes a new instance of the class. + + + + + Returns the bucket's serialization information in string. + + The serialization information in string + + + + Bucket state. + + + + + Create symlink request. + + + + + Gets or sets the object metadata of the Symlink (not the target object). + + The object metadata. + + + + Gets or sets the reqeust payer + + + + + The result object of GetSymlink + + + + + Gets or sets the symlink's metadata. + + The symlink's metadata. + + + + Gets or sets the target. + + The target. + + + + Gets or sets the symlink. + + The symlink. + + + + Do the resumable upload with multithread from file stream. + + Bucket name. + Key. + Resumable context. + Fs. + Upload progress callback. + + + + Do the resumable upload with multithread from non file stream + + Bucket name. + Key. + Resumable context. + Fs. + Upload progress callback. + + + + Gets or sets the name of the bucket. + + The name of the bucket. + + + + Gets or sets the key. + + The key. + + + + Gets or sets the download file. + + The download file. + + + + Gets or sets the size of the part. + + The size of the part. + + + + Gets or sets the parallel thread count. + + The parallel thread count. + + + + Gets or sets the checkpoint file. + + The checkpoint file. + + + + Gets or sets "If-Unmodified-Since" parameter + + + It means if its value is same or later than the actual last modified time, the file will be downloaded. + Otherwise, return precondition failed (412). + + + + + Gets or sets "If-Modified-Since". + + + It means if its value is smaller the actual last modified time, the file will be downloaded. + Otherwise, return precondition failed (412). + + + + + Gets or sets the stream transfer progress. + + The stream transfer progress. + + + + Gets the ETag matching constraint list. If the actual ETag matches any one in the constraint list, the file will be downloaded. + Otherwise, returns precondition failed. + The corresponding http header is "If-Match". + + + + + Gets the ETag non-matching constraint list. If the actual ETag does not match any one in the constraint list, the file will be downloaded. + Otherwise, returns precondition failed. + The corresponding http header is "If-None-Match". + + + + + Gets the overrided response headers. + + + + + Gets or sets the reqeust payer + + + + + Gets or sets the traffic limit, the unit is bit/s + + + + + Gets or sets the version id + + + + + Populate the http headers according to the properties of this object. + + The generated http headers + + + + Upload object request. + + + + + Initializes a new instance of the class. + + Bucket name. + Key. + Upload file. + + + + Initializes a new instance of the class. + + Bucket name. + Key. + Upload stream. + + + + Gets or sets the name of the bucket. + + The name of the bucket. + + + + Gets or sets the key. + + The key. + + + + Gets or sets the upload file. + + The upload file. + + + + Gets or sets the upload stream. + Note: when both UploadStream and UploadFile properties are set, the UploadStream will be used. + It will be disposed once the ResumableUploadFile finishes. + + The upload stream. + + + + Gets or sets the size of the part. + + The size of the part. + + + + Gets or sets the parallel thread count. + + The parallel thread count. + + + + Gets or sets the checkpoint dir. + + The checkpoint dir. + + + + Gets or sets the stream transfer progress. + + The stream transfer progress. + + + + Gets or sets the metadata. + + The metadata. + + + + Gets or sets the reqeust payer + + + + + Gets or sets the traffic limit, the unit is bit/s + + + + diff --git a/Bin/HtmlAgilityPack.dll b/Bin/HtmlAgilityPack.dll new file mode 100644 index 0000000..90dbaee Binary files /dev/null and b/Bin/HtmlAgilityPack.dll differ diff --git a/Bin/HtmlAgilityPack.dll.refresh b/Bin/HtmlAgilityPack.dll.refresh new file mode 100644 index 0000000..e37a15b Binary files /dev/null and b/Bin/HtmlAgilityPack.dll.refresh differ diff --git a/Bin/HtmlAgilityPack.pdb b/Bin/HtmlAgilityPack.pdb new file mode 100644 index 0000000..d4556b5 Binary files /dev/null and b/Bin/HtmlAgilityPack.pdb differ diff --git a/Bin/HtmlAgilityPack.xml b/Bin/HtmlAgilityPack.xml new file mode 100644 index 0000000..c02a102 --- /dev/null +++ b/Bin/HtmlAgilityPack.xml @@ -0,0 +1,2997 @@ + + + + HtmlAgilityPack + + + + + A utility class to compute CRC32. + + + + + Compute a checksum for a given array of bytes. + + The array of bytes to compute the checksum for. + The computed checksum. + + + + Compute a checksum for a given string. + + The string to compute the checksum for. + The computed checksum. + + + + Represents an HTML attribute. + + + + + Gets the line number of this attribute in the document. + + + + + Gets the column number of this attribute in the document. + + + + + Gets the stream position of the value of this attribute in the document, relative to the start of the document. + + + + + Gets the length of the value. + + + + + Gets the qualified name of the attribute. + + + + + Name of attribute with original case + + + + + Gets the HTML document to which this attribute belongs. + + + + + Gets the HTML node to which this attribute belongs. + + + + + Specifies what type of quote the data should be wrapped in + + + + + Gets the stream position of this attribute in the document, relative to the start of the document. + + + + + Gets or sets the value of the attribute. + + + + + Gets the DeEntitized value of the attribute. + + + + + Gets a valid XPath string that points to this Attribute + + + + + Compares the current instance with another attribute. Comparison is based on attributes' name. + + An attribute to compare with this instance. + A 32-bit signed integer that indicates the relative order of the names comparison. + + + + Creates a duplicate of this attribute. + + The cloned attribute. + + + + Removes this attribute from it's parents collection + + + + + An Enum representing different types of Quotes used for surrounding attribute values + + + + + A single quote mark ' + + + + + A double quote mark " + + + + + Represents a combined list and collection of HTML nodes. + + + + + Gets the number of elements actually contained in the list. + + + + + Gets readonly status of colelction + + + + + Gets the attribute at the specified index. + + + + + Gets a given attribute from the list using its name. + + + + + Adds supplied item to collection + + + + + + Explicit clear + + + + + Retreives existence of supplied item + + + + + + + Copies collection to array + + + + + + + Get Explicit enumerator + + + + + + Explicit non-generic enumerator + + + + + + Retrieves the index for the supplied item, -1 if not found + + + + + + + Inserts given item into collection at supplied index + + + + + + + Explicit collection remove + + + + + + + Removes the attribute at the specified index. + + The index of the attribute to remove. + + + + Adds a new attribute to the collection with the given values + + + + + + + Inserts the specified attribute as the last attribute in the collection. + + The attribute to insert. May not be null. + The appended attribute. + + + + Creates and inserts a new attribute as the last attribute in the collection. + + The name of the attribute to insert. + The appended attribute. + + + + Creates and inserts a new attribute as the last attribute in the collection. + + The name of the attribute to insert. + The value of the attribute to insert. + The appended attribute. + + + + Checks for existance of attribute with given name + + + + + + + Inserts the specified attribute as the first node in the collection. + + The attribute to insert. May not be null. + The prepended attribute. + + + + Removes a given attribute from the list. + + The attribute to remove. May not be null. + + + + Removes an attribute from the list, using its name. If there are more than one attributes with this name, they will all be removed. + + The attribute's name. May not be null. + + + + Remove all attributes in the list. + + + + + Returns all attributes with specified name. Handles case insentivity + + Name of the attribute + + + + + Removes all attributes from the collection + + + + + Clears the attribute collection + + + + + Represents an HTML comment. + + + + + Gets or Sets the comment text of the node. + + + + + Gets or Sets the HTML between the start and end tags of the object. In the case of a text node, it is equals to OuterHtml. + + + + + Gets or Sets the object and its content in HTML. + + + + + Represents a complete HTML document. + + + + True to disable, false to enable the behavior tag p. + + + Default builder to use in the HtmlDocument constructor + + + Action to execute before the Parse is executed + + + + Defines the max level we would go deep into the html document + + + + The HtmlDocument Text. Careful if you modify it. + + + True to stay backward compatible with previous version of HAP. This option does not guarantee 100% compatibility. + + + + Adds Debugging attributes to node. Default is false. + + + + + Defines if closing for non closed nodes must be done at the end or directly in the document. + Setting this to true can actually change how browsers render the page. Default is false. + + + + + Defines if non closed nodes will be checked at the end of parsing. Default is true. + + + + + Defines if a checksum must be computed for the document while parsing. Default is false. + + + + + Defines if SelectNodes method will return null or empty collection when no node matched the XPath expression. + Setting this to true will return empty collection and false will return null. Default is false. + + + + True to disable, false to enable the server side code. + + + + Defines the default stream encoding to use. Default is System.Text.Encoding.Default. + + + + + Defines if source text must be extracted while parsing errors. + If the document has a lot of errors, or cascading errors, parsing performance can be dramatically affected if set to true. + Default is false. + + + + + Defines the maximum length of source text or parse errors. Default is 100. + + + + + Defines if LI, TR, TH, TD tags must be partially fixed when nesting errors are detected. Default is false. + + + + + Defines if output must conform to XML, instead of HTML. Default is false. + + + + + If used together with and enabled, Xml namespaces in element names are preserved. Default is false. + + + + + Defines if attribute value output must be optimized (not bound with double quotes if it is possible). Default is false. + + + + + Defines if name must be output with it's original case. Useful for asp.net tags and attributes. Default is false. + + + + + Defines if name must be output in uppercase. Default is false. + + + + + Defines if declared encoding must be read from the document. + Declared encoding is determined using the meta http-equiv="content-type" content="text/html;charset=XXXXX" html node. + Default is true. + + + + + Defines the name of a node that will throw the StopperNodeException when found as an end node. Default is null. + + + + + Defines if the 'id' attribute must be specifically used. Default is true. + + + + + Defines if empty nodes must be written as closed during output. Default is false. + + + + + Creates an instance of an HTML document. + + + + Gets the parsed text. + The parsed text. + + + + Defines the max level we would go deep into the html document. If this depth level is exceeded, and exception is + thrown. + + + + + Gets the document CRC32 checksum if OptionComputeChecksum was set to true before parsing, 0 otherwise. + + + + + Gets the document's declared encoding. + Declared encoding is determined using the meta http-equiv="content-type" content="text/html;charset=XXXXX" html node (pre-HTML5) or the meta charset="XXXXX" html node (HTML5). + + + + + Gets the root node of the document. + + + + + Gets the document's output encoding. + + + + + Gets a list of parse errors found in the document. + + + + + Gets the remaining text. + Will always be null if OptionStopperNodeName is null. + + + + + Gets the offset of Remainder in the original Html text. + If OptionStopperNodeName is null, this will return the length of the original Html text. + + + + + Gets the document's stream encoding. + + + + + Gets a valid XML name. + + Any text. + A string that is a valid XML name. + + + + Applies HTML encoding to a specified string. + + The input string to encode. May not be null. + The encoded string. + + + + Determines if the specified character is considered as a whitespace character. + + The character to check. + true if if the specified character is considered as a whitespace character. + + + + Creates an HTML attribute with the specified name. + + The name of the attribute. May not be null. + The new HTML attribute. + + + + Creates an HTML attribute with the specified name. + + The name of the attribute. May not be null. + The value of the attribute. + The new HTML attribute. + + + + Creates an HTML comment node. + + The new HTML comment node. + + + + Creates an HTML comment node with the specified comment text. + + The comment text. May not be null. + The new HTML comment node. + + + + Creates an HTML element node with the specified name. + + The qualified name of the element. May not be null. + The new HTML node. + + + + Creates an HTML text node. + + The new HTML text node. + + + + Creates an HTML text node with the specified text. + + The text of the node. May not be null. + The new HTML text node. + + + + Detects the encoding of an HTML stream. + + The input stream. May not be null. + The detected encoding. + + + + Detects the encoding of an HTML stream. + + The input stream. May not be null. + The html is checked. + The detected encoding. + + + + Detects the encoding of an HTML text provided on a TextReader. + + The TextReader used to feed the HTML. May not be null. + The detected encoding. + + + + Detects the encoding of an HTML text. + + The input html text. May not be null. + The detected encoding. + + + + Gets the HTML node with the specified 'id' attribute value. + + The attribute id to match. May not be null. + The HTML node with the matching id or null if not found. + + + + Loads an HTML document from a stream. + + The input stream. + + + + Loads an HTML document from a stream. + + The input stream. + Indicates whether to look for byte order marks at the beginning of the stream. + + + + Loads an HTML document from a stream. + + The input stream. + The character encoding to use. + + + + Loads an HTML document from a stream. + + The input stream. + The character encoding to use. + Indicates whether to look for byte order marks at the beginning of the stream. + + + + Loads an HTML document from a stream. + + The input stream. + The character encoding to use. + Indicates whether to look for byte order marks at the beginning of the stream. + The minimum buffer size. + + + + Loads the HTML document from the specified TextReader. + + The TextReader used to feed the HTML data into the document. May not be null. + + + + Loads the HTML document from the specified string. + + String containing the HTML document to load. May not be null. + + + + Saves the HTML document to the specified stream. + + The stream to which you want to save. + + + + Saves the HTML document to the specified stream. + + The stream to which you want to save. May not be null. + The character encoding to use. May not be null. + + + + Saves the HTML document to the specified StreamWriter. + + The StreamWriter to which you want to save. + + + + Saves the HTML document to the specified TextWriter. + + The TextWriter to which you want to save. May not be null. + + + + Saves the HTML document to the specified XmlWriter. + + The XmlWriter to which you want to save. + + + + Detects the encoding of an HTML document from a file first, and then loads the file. + + The complete file path to be read. + + + + Detects the encoding of an HTML document from a file first, and then loads the file. + + The complete file path to be read. May not be null. + true to detect encoding, false otherwise. + + + + Detects the encoding of an HTML file. + + Path for the file containing the HTML document to detect. May not be null. + The detected encoding. + + + + Loads an HTML document from a file. + + The complete file path to be read. May not be null. + + + + Loads an HTML document from a file. + + The complete file path to be read. May not be null. + Indicates whether to look for byte order marks at the beginning of the file. + + + + Loads an HTML document from a file. + + The complete file path to be read. May not be null. + The character encoding to use. May not be null. + + + + Loads an HTML document from a file. + + The complete file path to be read. May not be null. + The character encoding to use. May not be null. + Indicates whether to look for byte order marks at the beginning of the file. + + + + Loads an HTML document from a file. + + The complete file path to be read. May not be null. + The character encoding to use. May not be null. + Indicates whether to look for byte order marks at the beginning of the file. + The minimum buffer size. + + + + Saves the mixed document to the specified file. + + The location of the file where you want to save the document. + + + + Saves the mixed document to the specified file. + + The location of the file where you want to save the document. May not be null. + The character encoding to use. May not be null. + + + + Creates a new XPathNavigator object for navigating this HTML document. + + An XPathNavigator object. The XPathNavigator is positioned on the root of the document. + + + + Flags that describe the behavior of an Element node. + + + + + The node is a CDATA node. + + + + + The node is empty. META or IMG are example of such nodes. + + + + + The node will automatically be closed during parsing. + + + + + The node can overlap. + + + + + A utility class to replace special characters by entities and vice-versa. + Follows HTML 4.0 specification found at http://www.w3.org/TR/html4/sgml/entities.html + Follows Additional specification found at https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references + See also: https://html.spec.whatwg.org/multipage/named-characters.html#named-character-references + + + + + A collection of entities indexed by name. + + + + + A collection of entities indexed by value. + + + + + Replace known entities by characters. + + The source text. + The result text. + + + + Clone and entitize an HtmlNode. This will affect attribute values and nodes' text. It will also entitize all child nodes. + + The node to entitize. + An entitized cloned node. + + + + Replace characters above 127 by entities. + + The source text. + The result text. + + + + Replace characters above 127 by entities. + + The source text. + If set to false, the function will not use known entities name. Default is true. + The result text. + + + + Replace characters above 127 by entities. + + The source text. + If set to false, the function will not use known entities name. Default is true. + If set to true, the [quote], [ampersand], [lower than] and [greather than] characters will be entitized. + The result text + + + + Represents an HTML node. + + + + + Gets the name of a comment node. It is actually defined as '#comment'. + + + + + Gets the name of the document node. It is actually defined as '#document'. + + + + + Gets the name of a text node. It is actually defined as '#text'. + + + + + Gets a collection of flags that define specific behaviors for specific element nodes. + The table contains a DictionaryEntry list with the lowercase tag name as the Key, and a combination of HtmlElementFlags as the Value. + + + + + Initialize HtmlNode. Builds a list of all tags that have special allowances + + + + + Initializes HtmlNode, providing type, owner and where it exists in a collection + + + + + + + + Gets the collection of HTML attributes for this node. May not be null. + + + + + Gets all the children of the node. + + + + + Gets a value indicating if this node has been closed or not. + + + + + Gets the collection of HTML attributes for the closing tag. May not be null. + + + + + Gets the closing tag of the node, null if the node is self-closing. + + + + + Gets the first child of the node. + + + + + Gets a value indicating whether the current node has any attributes. + + + + + Gets a value indicating whether this node has any child nodes. + + + + + Gets a value indicating whether the current node has any attributes on the closing tag. + + + + + Gets or sets the value of the 'id' HTML attribute. The document must have been parsed using the OptionUseIdAttribute set to true. + + + + + Gets or Sets the HTML between the start and end tags of the object. + + + + + Gets or Sets the text between the start and end tags of the object. + + + + + Gets the last child of the node. + + + + + Gets the line number of this node in the document. + + + + + Gets the column number of this node in the document. + + + + + Gets the stream position of the area between the opening and closing tag of the node, relative to the start of the document. + + + + + Gets the length of the area between the opening and closing tag of the node. + + + + + Gets the length of the entire node, opening and closing tag included. + + + + + Gets or sets this node's name. + + + + + Gets the HTML node immediately following this element. + + + + + Gets the type of this node. + + + + + The original unaltered name of the tag + + + + + Gets or Sets the object and its content in HTML. + + + + + Gets the to which this node belongs. + + + + + Gets the parent of this node (for nodes that can have parents). + + + + + Gets the node immediately preceding this node. + + + + + Gets the stream position of this node in the document, relative to the start of the document. + + + + + Gets a valid XPath string that points to this node + + + + + Determines if an element node can be kept overlapped. + + The name of the element node to check. May not be null. + true if the name is the name of an element node that can be kept overlapped, false otherwise. + + + + Creates an HTML node from a string representing literal HTML. + + The HTML text. + The newly created node instance. + + + + Determines if an element node is a CDATA element node. + + The name of the element node to check. May not be null. + true if the name is the name of a CDATA element node, false otherwise. + + + + Determines if an element node is closed. + + The name of the element node to check. May not be null. + true if the name is the name of a closed element node, false otherwise. + + + + Determines if an element node is defined as empty. + + The name of the element node to check. May not be null. + true if the name is the name of an empty element node, false otherwise. + + + + Determines if a text corresponds to the closing tag of an node that can be kept overlapped. + + The text to check. May not be null. + true or false. + + + + Returns a collection of all ancestor nodes of this element. + + + + + + Get Ancestors with matching name + + + + + + + Returns a collection of all ancestor nodes of this element. + + + + + + Gets all anscestor nodes and the current node + + + + + + + Adds the specified node to the end of the list of children of this node. + + The node to add. May not be null. + The node added. + + + Sets child nodes identifier. + The chil node. + + + + Adds the specified node to the end of the list of children of this node. + + The node list to add. May not be null. + + + + Gets all Attributes with name + + + + + + + Creates a duplicate of the node + + + + + + Creates a duplicate of the node and changes its name at the same time. + + The new name of the cloned node. May not be null. + The cloned node. + + + + Creates a duplicate of the node and changes its name at the same time. + + The new name of the cloned node. May not be null. + true to recursively clone the subtree under the specified node; false to clone only the node itself. + The cloned node. + + + + Creates a duplicate of the node. + + true to recursively clone the subtree under the specified node; false to clone only the node itself. + The cloned node. + + + + Creates a duplicate of the node and the subtree under it. + + The node to duplicate. May not be null. + + + + Creates a duplicate of the node. + + The node to duplicate. May not be null. + true to recursively clone the subtree under the specified node, false to clone only the node itself. + + + + Gets all Descendant nodes for this node and each of child nodes + + The depth level of the node to parse in the html tree + the current element as an HtmlNode + + + + Returns a collection of all descendant nodes of this element, in document order + + + + + + Gets all Descendant nodes in enumerated list + + + + + + Gets all Descendant nodes in enumerated list + + + + + + Get all descendant nodes with matching name + + + + + + + Returns a collection of all descendant nodes of this element, in document order + + + + + + Gets all descendant nodes including this node + + + + + + + Gets first generation child node matching name + + + + + + + Gets matching first generation child nodes matching name + + + + + + + Helper method to get the value of an attribute of this node. If the attribute is not found, the default value will be returned. + + The name of the attribute to get. May not be null. + The default value to return if not found. + The value of the attribute if found, the default value if not found. + + + + Helper method to get the value of an attribute of this node. If the attribute is not found, the default value will be returned. + + The name of the attribute to get. May not be null. + The default value to return if not found. + The value of the attribute if found, the default value if not found. + + + + Helper method to get the value of an attribute of this node. If the attribute is not found, the default value will be returned. + + The name of the attribute to get. May not be null. + The default value to return if not found. + The value of the attribute if found, the default value if not found. + + + + Inserts the specified node immediately after the specified reference node. + + The node to insert. May not be null. + The node that is the reference node. The newNode is placed after the refNode. + The node being inserted. + + + + Inserts the specified node immediately before the specified reference node. + + The node to insert. May not be null. + The node that is the reference node. The newChild is placed before this node. + The node being inserted. + + + + Adds the specified node to the beginning of the list of children of this node. + + The node to add. May not be null. + The node added. + + + + Adds the specified node list to the beginning of the list of children of this node. + + The node list to add. May not be null. + + + + Removes node from parent collection + + + + + Removes all the children and/or attributes of the current node. + + + + + Removes all the children of the current node. + + + + Removes all id for node described by node. + The node. + + + + Removes the specified child node. + + The node being removed. May not be null. + The node removed. + + + + Removes the specified child node. + + The node being removed. May not be null. + true to keep grand children of the node, false otherwise. + The node removed. + + + + Replaces the child node oldChild with newChild node. + + The new node to put in the child list. + The node being replaced in the list. + The node replaced. + + + + Helper method to set the value of an attribute of this node. If the attribute is not found, it will be created automatically. + + The name of the attribute to set. May not be null. + The value for the attribute. + The corresponding attribute instance. + + + + Saves all the children of the node to the specified TextWriter. + + The TextWriter to which you want to save. + Identifies the level we are in starting at root with 0 + + + + Saves all the children of the node to a string. + + The saved string. + + + + Saves the current node to the specified TextWriter. + + The TextWriter to which you want to save. + identifies the level we are in starting at root with 0 + + + + Saves the current node to the specified XmlWriter. + + The XmlWriter to which you want to save. + + + + Saves the current node to a string. + + The saved string. + + + + Adds one or more classes to this node. + + The node list to add. May not be null. + + + + Adds one or more classes to this node. + + The node list to add. May not be null. + true to throw Error if class name exists, false otherwise. + + + + Removes the class attribute from the node. + + + + + Removes the class attribute from the node. + + true to throw Error if class name doesn't exist, false otherwise. + + + + Removes the specified class from the node. + + The class being removed. May not be null. + + + + Removes the specified class from the node. + + The class being removed. May not be null. + true to throw Error if class name doesn't exist, false otherwise. + + + + Replaces the class name oldClass with newClass name. + + The new class name. + The class being replaced. + + + + Replaces the class name oldClass with newClass name. + + The new class name. + The class being replaced. + true to throw Error if class name doesn't exist, false otherwise. + + + Gets the CSS Class from the node. + + The CSS Class from the node + + + + Check if the node class has the parameter class. + The class. + True if node class has the parameter class, false if not. + + + + Fill an object and go through it's properties and fill them too. + + Type of object to want to fill. It should have atleast one property that defined XPath. + If htmlDocument includes data , leave this parameter null. Else pass your specific htmldocument. + Returns an object of type T including Encapsulated data. + + + + Fill an object and go through it's properties and fill them too. + + Type of object to want to fill. It should have atleast one property that defined XPath. + If htmlDocument includes data , leave this parameter null. Else pass your specific htmldocument. + Returns an object of type targetType including Encapsulated data. + + + + Creates a new XPathNavigator object for navigating this HTML node. + + An XPathNavigator object. The XPathNavigator is positioned on the node from which the method was called. It is not positioned on the root of the document. + + + + Creates an XPathNavigator using the root of this document. + + + + + + Selects a list of nodes matching the expression. + + The XPath expression. + An containing a collection of nodes matching the query, or null if no node matched the XPath expression. + + + + Selects a list of nodes matching the expression. + + The XPath expression. + An containing a collection of nodes matching the query, or null if no node matched the XPath expression. + + + + Selects the first XmlNode that matches the XPath expression. + + The XPath expression. May not be null. + The first that matches the XPath query or a null reference if no matching node was found. + + + + Selects a list of nodes matching the expression. + + The XPath expression. + An containing a collection of nodes matching the query, or null if no node matched the XPath expression. + + + + Includes tools that GetEncapsulatedData method uses them. + + + + + Determine if a type define an attribute or not , supporting both .NetStandard and .NetFramework2.0 + + Type you want to test it. + Attribute that type must have or not. + If true , The type parameter define attributeType parameter. + + + + Retrive properties of type that defined . + + Type that you want to find it's XPath-Defined properties. + IEnumerable of property infos of a type , that defined specific attribute. + + + + Determine if a has implemented BUT is considered as NONE-IEnumerable ! + + The property info you want to test. + True if property info is IEnumerable. + + + + Returns T type(first generic type) of or . + + IEnumerable-Implemented property + List of generic types. + + + + Find and Return a mehtod that defined in a class by it's name. + + Type of class include requested method. + Name of requested method as string. + Method info of requested method. + + + + Create of given type. + + Type that you want to make a List of it. + Returns IList of given type. + + + + Returns the part of value of you want as . + + A htmlNode instance. + Attribute that includes ReturnType + String that choosen from HtmlNode as result. + + + + Returns parts of values of you want as . + + that you want to retrive each value. + A instnce incules . + Type of IList generic you want. + + + + + Simulate Func method to use in Lambada Expression. + + + + + + + + + This method works like Where method in LINQ. + + + + + + + + + Check if the type can instantiated. + + + + + + + Returns count of elements stored in IEnumerable of T + + + + + + + + Specify which part of is requested. + + + + + Just mark and flag classes to show they have properties that defined . + + + + + Includes XPath and . XPath for finding html tags and for specify which part of you want to return. + + + + + Represents a combined list and collection of HTML nodes. + + + + + Initialize the HtmlNodeCollection with the base parent node + + The base node of the collection + + + + Gets a given node from the list. + + + + + Get node with tag name + + + + + + + Gets the number of elements actually contained in the list. + + + + + Is collection read only + + + + + Gets the node at the specified index. + + + + + Add node to the collection + + + + + + Add node to the collection + + + + + + + Clears out the collection of HtmlNodes. Removes each nodes reference to parentnode, nextnode and prevnode + + + + + Gets existence of node in collection + + + + + + + Copy collection to array + + + + + + + Get Enumerator + + + + + + Get Explicit Enumerator + + + + + + Get index of node + + + + + + + Insert node at index + + + + + + + Remove node + + + + + + + Remove at index + + + + + + Get first instance of node in supplied collection + + + + + + + + Add node to the end of the collection + + + + + + Get first instance of node with name + + + + + + + Get index of node + + + + + + + Add node to the beginning of the collection + + + + + + Remove node at index + + + + + + + Replace node at index + + + + + + + Get all node descended from this collection + + + + + + Get all node descended from this collection with matching name + + + + + + Gets all first generation elements in collection + + + + + + Gets all first generation elements matching name + + + + + + + All first generation nodes in collection + + + + + + Represents an HTML navigator on an HTML document seen as a data store. + + + + + Initializes a new instance of the HtmlNavigator and loads an HTML document from a stream. + + The input stream. + + + + Initializes a new instance of the HtmlNavigator and loads an HTML document from a stream. + + The input stream. + Indicates whether to look for byte order marks at the beginning of the stream. + + + + Initializes a new instance of the HtmlNavigator and loads an HTML document from a stream. + + The input stream. + The character encoding to use. + + + + Initializes a new instance of the HtmlNavigator and loads an HTML document from a stream. + + The input stream. + The character encoding to use. + Indicates whether to look for byte order marks at the beginning of the stream. + + + + Initializes a new instance of the HtmlNavigator and loads an HTML document from a stream. + + The input stream. + The character encoding to use. + Indicates whether to look for byte order marks at the beginning of the stream. + The minimum buffer size. + + + + Initializes a new instance of the HtmlNavigator and loads an HTML document from a TextReader. + + The TextReader used to feed the HTML data into the document. + + + + Initializes a new instance of the HtmlNavigator and loads an HTML document from a file. + + The complete file path to be read. + + + + Initializes a new instance of the HtmlNavigator and loads an HTML document from a file. + + The complete file path to be read. + Indicates whether to look for byte order marks at the beginning of the file. + + + + Initializes a new instance of the HtmlNavigator and loads an HTML document from a file. + + The complete file path to be read. + The character encoding to use. + + + + Initializes a new instance of the HtmlNavigator and loads an HTML document from a file. + + The complete file path to be read. + The character encoding to use. + Indicates whether to look for byte order marks at the beginning of the file. + + + + Initializes a new instance of the HtmlNavigator and loads an HTML document from a file. + + The complete file path to be read. + The character encoding to use. + Indicates whether to look for byte order marks at the beginning of the file. + The minimum buffer size. + + + + Gets the base URI for the current node. + Always returns string.Empty in the case of HtmlNavigator implementation. + + + + + Gets the current HTML document. + + + + + Gets the current HTML node. + + + + + Gets a value indicating whether the current node has child nodes. + + + + + Gets a value indicating whether the current node has child nodes. + + + + + Gets a value indicating whether the current node is an empty element. + + + + + Gets the name of the current HTML node without the namespace prefix. + + + + + Gets the qualified name of the current node. + + + + + Gets the namespace URI (as defined in the W3C Namespace Specification) of the current node. + Always returns string.Empty in the case of HtmlNavigator implementation. + + + + + Gets the associated with this implementation. + + + + + Gets the type of the current node. + + + + + Gets the prefix associated with the current node. + Always returns string.Empty in the case of HtmlNavigator implementation. + + + + + Gets the text value of the current node. + + + + + Gets the xml:lang scope for the current node. + Always returns string.Empty in the case of HtmlNavigator implementation. + + + + + Creates a new HtmlNavigator positioned at the same node as this HtmlNavigator. + + A new HtmlNavigator object positioned at the same node as the original HtmlNavigator. + + + + Gets the value of the HTML attribute with the specified LocalName and NamespaceURI. + + The local name of the HTML attribute. + The namespace URI of the attribute. Unsupported with the HtmlNavigator implementation. + The value of the specified HTML attribute. String.Empty or null if a matching attribute is not found or if the navigator is not positioned on an element node. + + + + Returns the value of the namespace node corresponding to the specified local name. + Always returns string.Empty for the HtmlNavigator implementation. + + The local name of the namespace node. + Always returns string.Empty for the HtmlNavigator implementation. + + + + Determines whether the current HtmlNavigator is at the same position as the specified HtmlNavigator. + + The HtmlNavigator that you want to compare against. + true if the two navigators have the same position, otherwise, false. + + + + Moves to the same position as the specified HtmlNavigator. + + The HtmlNavigator positioned on the node that you want to move to. + true if successful, otherwise false. If false, the position of the navigator is unchanged. + + + + Moves to the HTML attribute with matching LocalName and NamespaceURI. + + The local name of the HTML attribute. + The namespace URI of the attribute. Unsupported with the HtmlNavigator implementation. + true if the HTML attribute is found, otherwise, false. If false, the position of the navigator does not change. + + + + Moves to the first sibling of the current node. + + true if the navigator is successful moving to the first sibling node, false if there is no first sibling or if the navigator is currently positioned on an attribute node. + + + + Moves to the first HTML attribute. + + true if the navigator is successful moving to the first HTML attribute, otherwise, false. + + + + Moves to the first child of the current node. + + true if there is a first child node, otherwise false. + + + + Moves the XPathNavigator to the first namespace node of the current element. + Always returns false for the HtmlNavigator implementation. + + An XPathNamespaceScope value describing the namespace scope. + Always returns false for the HtmlNavigator implementation. + + + + Moves to the node that has an attribute of type ID whose value matches the specified string. + + A string representing the ID value of the node to which you want to move. This argument does not need to be atomized. + true if the move was successful, otherwise false. If false, the position of the navigator is unchanged. + + + + Moves the XPathNavigator to the namespace node with the specified local name. + Always returns false for the HtmlNavigator implementation. + + The local name of the namespace node. + Always returns false for the HtmlNavigator implementation. + + + + Moves to the next sibling of the current node. + + true if the navigator is successful moving to the next sibling node, false if there are no more siblings or if the navigator is currently positioned on an attribute node. If false, the position of the navigator is unchanged. + + + + Moves to the next HTML attribute. + + + + + + Moves the XPathNavigator to the next namespace node. + Always returns falsefor the HtmlNavigator implementation. + + An XPathNamespaceScope value describing the namespace scope. + Always returns false for the HtmlNavigator implementation. + + + + Moves to the parent of the current node. + + true if there is a parent node, otherwise false. + + + + Moves to the previous sibling of the current node. + + true if the navigator is successful moving to the previous sibling node, false if there is no previous sibling or if the navigator is currently positioned on an attribute node. + + + + Moves to the root node to which the current node belongs. + + + + + Represents the type of a node. + + + + + The root of a document. + + + + + An HTML element. + + + + + An HTML comment. + + + + + A text node is always the child of an element or a document node. + + + + + Represents a parsing error found during document parsing. + + + + + Gets the type of error. + + + + + Gets the line number of this error in the document. + + + + + Gets the column number of this error in the document. + + + + + Gets a description for the error. + + + + + Gets the the full text of the line containing the error. + + + + + Gets the absolute stream position of this error in the document, relative to the start of the document. + + + + + Represents the type of parsing error. + + + + + A tag was not closed. + + + + + A tag was not opened. + + + + + There is a charset mismatch between stream and declared (META) encoding. + + + + + An end tag was not required. + + + + + An end tag is invalid at this position. + + + + + Represents an HTML text node. + + + + + Gets or Sets the HTML between the start and end tags of the object. In the case of a text node, it is equals to OuterHtml. + + + + + Gets or Sets the object and its content in HTML. + + + + + Gets or Sets the text of the node. + + + + + A utility class to get HTML document from HTTP. + + + + + Represents the method that will handle the PostResponse event. + + + + + Represents the method that will handle the PreHandleDocument event. + + + + + Represents the method that will handle the PreRequest event. + + + + + Occurs after an HTTP request has been executed. + + + + + Occurs before an HTML document is handled. + + + + + Occurs before an HTTP request is executed. + + + + + Gets or Sets a value indicating if document encoding must be automatically detected. + + + + + Gets or sets the Encoding used to override the response stream from any web request + + + + + Gets or Sets a value indicating whether to get document only from the cache. + If this is set to true and document is not found in the cache, nothing will be loaded. + + + + + Gets or Sets a value indicating whether to get document from the cache if exists, otherwise from the web + A value indicating whether to get document from the cache if exists, otherwise from the web + + + + + Gets or Sets the cache path. If null, no caching mechanism will be used. + + + + + Gets a value indicating if the last document was retrieved from the cache. + + + + + Gets the last request duration in milliseconds. + + + + + Gets the URI of the Internet resource that actually responded to the request. + + + + + Gets the last request status. + + + + + Gets or Sets the size of the buffer used for memory operations. + + + + + Gets or Sets a value indicating if cookies will be stored. + + + + Gets or sets a value indicating whether redirect should be captured instead of the current location. + True if capture redirect, false if not. + + + + Gets or Sets the User Agent HTTP 1.1 header sent on any webrequest + + + + + Gets or Sets a value indicating whether the caching mechanisms should be used or not. + + + + + Gets the MIME content type for a given path extension. + + The input path extension. + The default content type to return if any error occurs. + The path extension's MIME content type. + + + + Gets the path extension for a given MIME content type. + + The input MIME content type. + The default path extension to return if any error occurs. + The MIME content type's path extension. + + + + Creates an instance of the given type from the specified Internet resource. + + The requested URL, such as "http://Myserver/Mypath/Myfile.asp". + The requested type. + An newly created instance. + + + + Gets an HTML document from an Internet resource and saves it to the specified file. + + The requested URL, such as "http://Myserver/Mypath/Myfile.asp". + The location of the file where you want to save the document. + + + + Gets an HTML document from an Internet resource and saves it to the specified file. - Proxy aware + + The requested URL, such as "http://Myserver/Mypath/Myfile.asp". + The location of the file where you want to save the document. + + + + + + Gets an HTML document from an Internet resource and saves it to the specified file. + + The requested URL, such as "http://Myserver/Mypath/Myfile.asp". + The location of the file where you want to save the document. + The HTTP method used to open the connection, such as GET, POST, PUT, or PROPFIND. + + + + Gets an HTML document from an Internet resource and saves it to the specified file. Understands Proxies + + The requested URL, such as "http://Myserver/Mypath/Myfile.asp". + The location of the file where you want to save the document. + + The HTTP method used to open the connection, such as GET, POST, PUT, or PROPFIND. + + + + + Gets the cache file path for a specified url. + + The url fo which to retrieve the cache path. May not be null. + The cache file path. + + + + Gets an HTML document from an Internet resource. + + The requested URL, such as "http://Myserver/Mypath/Myfile.asp". + A new HTML document. + + + + Gets an HTML document from an Internet resource. + + The requested Uri, such as new Uri("http://Myserver/Mypath/Myfile.asp"). + A new HTML document. + + + + Gets an HTML document from an Internet resource. + + The requested URL, such as "http://Myserver/Mypath/Myfile.asp". + Host to use for Proxy + Port the Proxy is on + User Id for Authentication + Password for Authentication + A new HTML document. + + + + Gets an HTML document from an Internet resource. + + The requested Uri, such as new Uri("http://Myserver/Mypath/Myfile.asp"). + Host to use for Proxy + Port the Proxy is on + User Id for Authentication + Password for Authentication + A new HTML document. + + + + Loads an HTML document from an Internet resource. + + The requested URL, such as "http://Myserver/Mypath/Myfile.asp". + The HTTP method used to open the connection, such as GET, POST, PUT, or PROPFIND. + A new HTML document. + + + + Loads an HTML document from an Internet resource. + + The requested URL, such as new Uri("http://Myserver/Mypath/Myfile.asp"). + The HTTP method used to open the connection, such as GET, POST, PUT, or PROPFIND. + A new HTML document. + + + + Loads an HTML document from an Internet resource. + + The requested URL, such as "http://Myserver/Mypath/Myfile.asp". + The HTTP method used to open the connection, such as GET, POST, PUT, or PROPFIND. + Proxy to use with this request + Credentials to use when authenticating + A new HTML document. + + + + Loads an HTML document from an Internet resource. + + The requested Uri, such as new Uri("http://Myserver/Mypath/Myfile.asp"). + The HTTP method used to open the connection, such as GET, POST, PUT, or PROPFIND. + Proxy to use with this request + Credentials to use when authenticating + A new HTML document. + + + + Loads an HTML document from an Internet resource and saves it to the specified XmlTextWriter. + + The requested URL, such as "http://Myserver/Mypath/Myfile.asp". + The XmlTextWriter to which you want to save to. + + + + Begins the process of downloading an internet resource + + Url to the html document + + + + Begins the process of downloading an internet resource + + Url to the html document + A cancellation token that can be used by other objects or threads to receive notice of cancellation. + + + + Begins the process of downloading an internet resource + + Url to the html document + The encoding to use while downloading the document + + + + Begins the process of downloading an internet resource + + Url to the html document + The encoding to use while downloading the document + A cancellation token that can be used by other objects or threads to receive notice of cancellation. + + + + Begins the process of downloading an internet resource + + Url to the html document + The encoding to use while downloading the document + Username to use for credentials in the web request + Password to use for credentials in the web request + + + + Begins the process of downloading an internet resource + + Url to the html document + The encoding to use while downloading the document + Username to use for credentials in the web request + Password to use for credentials in the web request + A cancellation token that can be used by other objects or threads to receive notice of cancellation. + + + + Begins the process of downloading an internet resource + + Url to the html document + The encoding to use while downloading the document + Username to use for credentials in the web request + Password to use for credentials in the web request + Domain to use for credentials in the web request + + + + Begins the process of downloading an internet resource + + Url to the html document + The encoding to use while downloading the document + Username to use for credentials in the web request + Password to use for credentials in the web request + Domain to use for credentials in the web request + A cancellation token that can be used by other objects or threads to receive notice of cancellation. + + + + Begins the process of downloading an internet resource + + Url to the html document + Username to use for credentials in the web request + Password to use for credentials in the web request + Domain to use for credentials in the web request + + + + Begins the process of downloading an internet resource + + Url to the html document + Username to use for credentials in the web request + Password to use for credentials in the web request + Domain to use for credentials in the web request + A cancellation token that can be used by other objects or threads to receive notice of cancellation. + + + + Begins the process of downloading an internet resource + + Url to the html document + Username to use for credentials in the web request + Password to use for credentials in the web request + + + + Begins the process of downloading an internet resource + + Url to the html document + Username to use for credentials in the web request + Password to use for credentials in the web request + A cancellation token that can be used by other objects or threads to receive notice of cancellation. + + + + Begins the process of downloading an internet resource + + Url to the html document + The credentials to use for authenticating the web request + + + + Begins the process of downloading an internet resource + + Url to the html document + The credentials to use for authenticating the web request + A cancellation token that can be used by other objects or threads to receive notice of cancellation. + + + + Begins the process of downloading an internet resource + + Url to the html document + The encoding to use while downloading the document + The credentials to use for authenticating the web request + + + + Begins the process of downloading an internet resource + + Url to the html document + The encoding to use while downloading the document + The credentials to use for authenticating the web request + A cancellation token that can be used by other objects or threads to receive notice of cancellation. + + + Gets or sets the web browser timeout. + + + + Gets or sets the web browser delay. + + + Loads HTML using a WebBrowser and Application.DoEvents. + Thrown when an exception error condition occurs. + The requested URL, such as "http://html-agility-pack.net/". + A new HTML document. + + + Loads HTML using a WebBrowser and Application.DoEvents. + Thrown when an exception error condition occurs. + The requested URL, such as "http://html-agility-pack.net/". + (Optional) Check if the browser script has all been run and completed. + A new HTML document. + + + Loads HTML using a WebBrowser and Application.DoEvents. + Thrown when an exception error condition occurs. + The requested URL, such as "http://html-agility-pack.net/". + (Optional) Check if the browser script has all been run and completed. + A new HTML document. + + + + Creates an instance of the given type from the specified Internet resource. + + The requested URL, such as "http://Myserver/Mypath/Myfile.asp". + The URL that specifies the XSLT stylesheet to load. + An containing the namespace-qualified arguments used as input to the transform. + The requested type. + An newly created instance. + + + + Creates an instance of the given type from the specified Internet resource. + + The requested URL, such as "http://Myserver/Mypath/Myfile.asp". + The URL that specifies the XSLT stylesheet to load. + An containing the namespace-qualified arguments used as input to the transform. + The requested type. + A file path where the temporary XML before transformation will be saved. Mostly used for debugging purposes. + An newly created instance. + + + + Loads an HTML document from an Internet resource and saves it to the specified XmlTextWriter, after an XSLT transformation. + + The requested URL, such as "http://Myserver/Mypath/Myfile.asp". + The URL that specifies the XSLT stylesheet to load. + An XsltArgumentList containing the namespace-qualified arguments used as input to the transform. + The XmlTextWriter to which you want to save. + + + + Loads an HTML document from an Internet resource and saves it to the specified XmlTextWriter, after an XSLT transformation. + + The requested URL, such as "http://Myserver/Mypath/Myfile.asp". May not be null. + The URL that specifies the XSLT stylesheet to load. + An XsltArgumentList containing the namespace-qualified arguments used as input to the transform. + The XmlTextWriter to which you want to save. + A file path where the temporary XML before transformation will be saved. Mostly used for debugging purposes. + + + + Wraps getting AppDomain permissions + + + + + Checks to see if Registry access is available to the caller + + + + + + Checks to see if DNS information is available to the caller + + + + + + An interface for getting permissions of the running application + + + + + Checks to see if Registry access is available to the caller + + + + + + Checks to see if DNS information is available to the caller + + + + + + Represents an exception thrown by the HtmlWeb utility class. + + + + + Creates an instance of the HtmlWebException. + + The exception's message. + + + + Represents a document with mixed code and text. ASP, ASPX, JSP, are good example of such documents. + + + + + Gets or sets the token representing code end. + + + + + Gets or sets the token representing code start. + + + + + Gets or sets the token representing code directive. + + + + + Gets or sets the token representing response write directive. + + + + + Creates a mixed code document instance. + + + + + Gets the code represented by the mixed code document seen as a template. + + + + + Gets the list of code fragments in the document. + + + + + Gets the list of all fragments in the document. + + + + + Gets the encoding of the stream used to read the document. + + + + + Gets the list of text fragments in the document. + + + + + Create a code fragment instances. + + The newly created code fragment instance. + + + + Create a text fragment instances. + + The newly created text fragment instance. + + + + Loads a mixed code document from a stream. + + The input stream. + + + + Loads a mixed code document from a stream. + + The input stream. + Indicates whether to look for byte order marks at the beginning of the file. + + + + Loads a mixed code document from a stream. + + The input stream. + The character encoding to use. + + + + Loads a mixed code document from a stream. + + The input stream. + The character encoding to use. + Indicates whether to look for byte order marks at the beginning of the file. + + + + Loads a mixed code document from a stream. + + The input stream. + The character encoding to use. + Indicates whether to look for byte order marks at the beginning of the file. + The minimum buffer size. + + + + Loads a mixed code document from a file. + + The complete file path to be read. + + + + Loads a mixed code document from a file. + + The complete file path to be read. + Indicates whether to look for byte order marks at the beginning of the file. + + + + Loads a mixed code document from a file. + + The complete file path to be read. + The character encoding to use. + + + + Loads a mixed code document from a file. + + The complete file path to be read. + The character encoding to use. + Indicates whether to look for byte order marks at the beginning of the file. + + + + Loads a mixed code document from a file. + + The complete file path to be read. + The character encoding to use. + Indicates whether to look for byte order marks at the beginning of the file. + The minimum buffer size. + + + + Loads the mixed code document from the specified TextReader. + + The TextReader used to feed the HTML data into the document. + + + + Loads a mixed document from a text + + The text to load. + + + + Saves the mixed document to the specified stream. + + The stream to which you want to save. + + + + Saves the mixed document to the specified stream. + + The stream to which you want to save. + The character encoding to use. + + + + Saves the mixed document to the specified file. + + The location of the file where you want to save the document. + + + + Saves the mixed document to the specified file. + + The location of the file where you want to save the document. + The character encoding to use. + + + + Saves the mixed document to the specified StreamWriter. + + The StreamWriter to which you want to save. + + + + Saves the mixed document to the specified TextWriter. + + The TextWriter to which you want to save. + + + + Represents a fragment of code in a mixed code document. + + + + + Gets the fragment code text. + + + + + Represents a base class for fragments in a mixed code document. + + + + + Gets the fragement text. + + + + + Gets the type of fragment. + + + + + Gets the line number of the fragment. + + + + + Gets the line position (column) of the fragment. + + + + + Gets the fragment position in the document's stream. + + + + + Represents a list of mixed code fragments. + + + + + Gets the Document + + + + + Gets the number of fragments contained in the list. + + + + + Gets a fragment from the list using its index. + + + + + Gets an enumerator that can iterate through the fragment list. + + + + + Appends a fragment to the list of fragments. + + The fragment to append. May not be null. + + + + Gets an enumerator that can iterate through the fragment list. + + + + + Prepends a fragment to the list of fragments. + + The fragment to append. May not be null. + + + + Remove a fragment from the list of fragments. If this fragment was not in the list, an exception will be raised. + + The fragment to remove. May not be null. + + + + Remove all fragments from the list. + + + + + Remove a fragment from the list of fragments, using its index in the list. + + The index of the fragment to remove. + + + + Represents a fragment enumerator. + + + + + Gets the current element in the collection. + + + + + Gets the current element in the collection. + + + + + Advances the enumerator to the next element of the collection. + + true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection. + + + + Sets the enumerator to its initial position, which is before the first element in the collection. + + + + + Represents the type of fragment in a mixed code document. + + + + + The fragment contains code. + + + + + The fragment contains text. + + + + + Represents a fragment of text in a mixed code document. + + + + + Gets the fragment text. + + + + diff --git a/Bin/MSharp.Framework.Core.dll b/Bin/MSharp.Framework.Core.dll new file mode 100644 index 0000000..844419b Binary files /dev/null and b/Bin/MSharp.Framework.Core.dll differ diff --git a/Bin/MSharp.Framework.Core.dll.refresh b/Bin/MSharp.Framework.Core.dll.refresh new file mode 100644 index 0000000..5d911e0 Binary files /dev/null and b/Bin/MSharp.Framework.Core.dll.refresh differ diff --git a/Bin/MSharp.Framework.Core.pdb b/Bin/MSharp.Framework.Core.pdb new file mode 100644 index 0000000..b532d41 Binary files /dev/null and b/Bin/MSharp.Framework.Core.pdb differ diff --git a/Bin/MSharp.Framework.Core.xml b/Bin/MSharp.Framework.Core.xml new file mode 100644 index 0000000..c01c7d1 --- /dev/null +++ b/Bin/MSharp.Framework.Core.xml @@ -0,0 +1,7377 @@ + + + + MSharp.Framework.Core + + + + + Created from a persisted Document to prevent unnecessary file loading when it's not actually changed. + So that if an entity is being updated, while its original file is not changed, + we don't do an unnecessary file operation. + + + + + Provides an utility for handling Binary property types. + + + + + In Test projects particularly, having files save themselves on the disk can waste space. + To prevent that, apply this setting in the config file. + + + + + Initializes a new instance of the class. + + + + + Initializes a new Document instance with the specified data and file name. + + + + + Initializes a new Document instance with the specified file name. + + + + + Initializes a new Document instance, for the specified file on disk. + + + + + Gets the address of the property owning this document in the format: Type/ID/Property + + + + + Optimizes the image based on the settings in the arguments. + + + + + Optimizes the image based on the settings in the arguments. + + + + + Gets an empty document object. + + + + + Gets or sets the data of this document. + + + + + Gets all fall-back paths for this Document + + + + + Gets the Url of this document. + + + + + Gets the content + + + + + + Gets a Url to this document. + + + + + Gets a Url to this document. + + + + + Returns the Url of this document, or the provided default Url if this is Empty. + + + + + Gets a cache safe URL to this document. + + + + + Determines whether this is an empty document. + + + + + Determines whether this document has any content. + + + + + Creates a clone of this document. + + + + + Attaches this Document to a specific record's file property. + + + + + Attaches this Document to a specific record's file property. + + + + + Detaches this Document. + + + + + Deletes this document from the disk. + + + + + Saves this file on the disk. + + + + + Gets the mime type based on the file extension. + + + + Determines if this document's file extension is for audio or video. + + + + Gets the physical path root. + + + + + This will return the document object linked to the correct entity. + + Expected format: Type/Id/Property. + + + + Gets the local physical path of this file. + + + + + Gets a list of unsafe file extensions. + + + + + Determines whether the extension of this file is potentially unsafe. + + + + + Gets this document if it has a value, otherwise another specified document. + + + + + Compares this document versus a specified other document. + + + + + Compares this document versus a specified other document. + + + + + This is to be configured in Global.asax if a different provider is needed for specific files. + Example: MSharp.Framework.DocumentStorageProviderFactory.Add("Customer.Logo", new MySpecialStorageProvider); + + + + + In the format: {type}.{property} e.g. Customer.Logo. + + + + + This interface can be implemented on any entity which has a property of type Document. + + + + + Gets the path to the physical folder containing files for the specified document property. + If you don't need to implement this specific method, simply return NULL. + + + + + Gets the URL to the virtual folder containing files for the specified document property. + If you don't need to implement this specific method, simply return NULL. + + + + + Gets the name of the file used for the specified document property, without extension. + If you don't need to implement this specific method, simply return NULL. + + + + + Gets the fallback paths for the specified document. + + + + + Gets the url of the specified document. + + + + + Represents an instance of Automated task entity type. + + + + + Initializes a new instance of the AutomatedTask class. + + + + + Gets the CurrentExecutionDuration property. + + + + + Gets or sets the value of CurrentStartTime on this Automated task instance. + + + + + Gets the LastRunDuration property. + + + + + Gets or sets the value of LastRunEnd on this Automated task instance. + + + + + Gets or sets the value of LastRunStart on this Automated task instance. + + + + + Gets or sets the value of Name on this Automated task instance. + + + + + Gets or sets the value of NextTry on this Automated task instance. + + + + + Gets or sets a value indicating whether this Automated task instance Record failure. + + + + + Gets or sets a value indicating whether this Automated task instance Record success. + + + + + Gets or sets the Delay of this AutomatedTask. + + + + + Gets or sets the SyncGroup of this AutomatedTask. + + + + + Gets or sets the Priority of this AutomatedTask. + + + + + Returns a textual representation of this Automated task. + + A string value that represents this Automated task instance. + + + + Validates the data for the properties of this Automated task. + It throws a ValidationException if an error is detected. + + + + + Creates a new AutomatedTask instance. + + + + + Starts this automated task. + + + + + Restarts this task. + + + + + Represents an instance of Automated Task Status entity type. + + + + + Gets or sets the value of Name on this Automated Task Status instance. + + + + + Returns a textual representation of this Automated Task Status. + + A string value that represents this Automated Task Status instance. + + + + Creates a new AutomatedTaskStatus instance. + + + + + A data-reader style interface for reading Csv files. + + + + + Reads a CSV document into a data table. Note use the CastTo() method on the returned DataTable to gain fully-typed objects. + + + + + Reads a CSV file into a data table. Note use the CastTo() method on the returned DataTable to gain fully-typed objects. + + + + + Reads a CSV piece of string into a data table using OleDb. Note use the CastTo() method on the returned DataTable to gain fully-typed objects. + + + + + Reads a CSV piece of string into a data table. Note use the CastTo() method on the returned DataTable to gain fully-typed objects. + + + + + Gets the column names on the specified CSV document. + + + + + Gets the column names on the specified CSV content. + + + + + Each attachment will be XML in the form of:  <Attachment FileName="myFile.pdf"> +     <Bytes>Base64 here</Bytes> + </Attachment> + + + + + Gets the mandatory placeholder tokens for this template. + + + + + Ensures the mandatory placeholders are all specified in this template. + + + + + Merges the subjcet of this email template with the specified data. + + An anonymouse object. All property names should correspond to the placeholder names. + For example: new {FirstName = GetFirstName() , LastName = "john"} + + + + Merges the body of this email template with the specified data. + + An anonymouse object. All property names should correspond to the placeholder names. + For example: new {FirstName = GetFirstName() , LastName = "john"} + + + + Merges the specified template with the provided. + + + + + Attaches a file to this email. + + + + + Attaches a file to this email. + + The path of the attachment file. + This must be the physical path of a file inside the running application. + + + + Attaches the specified byte array content to this email as an attachment. + + + + + Will send an email and returns true for successful sending. + + + + + Records an unsuccessful attempt to send this email. + + + + + Provides email sending services. + + + + + Gets the Attachment objects to be attached to this email. + + + + + Gets the Linked Resource objects to be attached to this email. + + + + + Specifies a factory to instantiate EmailQueueItem objects. + + + + + Provides a message which can dispatch an email message. + Returns whether the message was sent successfully. + + + + + Occurs when the smtp mail message for this email is sent. Sender is the IEmailQueueItem instance that was sent. + + + + + Occurs when the smtp mail message for this email is about to be sent. + + + + + Occurs when an exception happens when sending an email. Sender parameter will be the IEmailQueueItem instance that couldn't be sent. + + + + + Raises the Sending event. + + + + + Raises the Sent event. + + + + + Tries to sends all emails. + + + + + Tries to sends all emails. + + The category of the emails to send. Use "*" to indicate "all emails". + + + + Tries to sends all emails. + + The time to wait in between sending each outstanding email. + + + + Tries to sends all emails. + + The category of the emails to send. Use "*" to indicate "all emails". + + + + Will try to send the specified email and returns true for successful sending. + + + + + Gets the email items which have been sent (marked as soft deleted). + + + + + Creates an SMTP mail message for a specified mail item. + + + + + Creates a VCalendar text with the specified parameters. + + This uniquely identifies the meeting and is used for changes / cancellations. It is recommended to use the ID of the owner object. + + + + Represents an email generated by the application. + + + + + Gets or sets the body of this email. + + + + + Gets or sets the Date of this email. + + + + + Gets or sets whether SSL is enabled. + + + + + Gets or sets whether this email is HTML. + + + + + Gets or sets the Sender Address of this email. + + + + + Gets or sets the Sender Name for this email. + + + + + Gets or sets the Subject of this email. + + + + + Gets or sets the recipient of this email. + + + + + Gets or sets the Attachments information for this email. + + + + + Gets or sets the Bcc recipients of this email. + + + + + Gets or sets the Bcc recipients of this email. + + + + + Gets or sets the number of times sending this email has been tried. + + + + + Gets or sets the VCalendar View of this email. + + + + + Gets or sets the Username to use for sending this email. + + + + + Gets or sets the Password to use for sending this email. + + + + + Gets or sets the Smtp host address to use for sending this email. + + + + + Gets or sets the Smtp port to use for sending this email. + + + + + Gets or sets the Category for sending this email. + + + + + Represents an instance of Email template entity type. + + + + + Gets or sets the value of Body on this Email template instance. + + + + + Gets or sets the value of Key on this Email template instance. + + + + + Gets or sets the value of MandatoryPlaceholders on this Email template instance. + + + + + Gets or sets the value of Subject on this Email template instance. + + + + + Provides secure password hashing service based on PBKDF2. + + + + + Creates a salted PBKDF2 hash of the password. + + + + + Validates a password given a hash of the correct one. + + + + + Initializes a new instance of the class. + + + + + Gets or sets the text of this cell. + + + + + Gets or sets the type of this cell. + + + + + Determines if this cell has the same style as the specifying one. + + + + + Provides styles for excel cells. + + + + + Initializes a new instance of the class. + + + + + Gets or sets the horizontal alignment of this style. + + + + + Gets or sets the vertical alignment of this style. + + + + + Gets or sets the cell orientation of this style. + + + + + Gets or sets the size of the font. + + + + + Gets or sets the background color of this style. + + + + + Gets or sets the border color of this style. + + + + + Gets or sets the width of the border. + + + + + Gets or sets the font name of this style. + + + + + Gets or sets the Number format of this style. + + + + + Gets or sets if font should be bold. + + + + + Gets or sets if the text should be wrapped. + + + + + Gets or sets if font should be Italic. + + + + + Gets or sets the background color of this style. + + + + + Gets or sets the Style of this ExcelColumn. + Use ExcelExporter.Style.[Item] to add styles to this. + + + + + Use ExcelExporter.Style.[Item] to add styles. + + + + + Gets a unique ID for this style. + + + + + Creates a new ExcelExporter instance. + + + + + Creates a new ExcelExporter instance. + + + + + Specifies the type of output file. + + + + + Gets or sets a Workbook Unique integer ID to use for creating styles. + + + + + Creates a new ExcelColumn instance. + + + + + Sets the specified row style attribute. + + + + + Sets the specified header style attribute. + + + + + Gets or sets the style of this columns's header cell. + + + + + Gets or sets the style of this columns's data cells. + + + + + Gets or sets the HeaderText of this ExcelColumn. + + + + + Gets or sets the Type of this ExcelColumn. + + + + + Gets or sets the Formula of this ExcelColumn. + + + + + Gets or sets the group name of this ExcelColumn. + + + + + Customizes this column. + + + + + enumeration items to select from + + + + + Gets or sets the Name of this ExcelDropDownColumn. + + + + + Creates a new ExcelExporter instance. + + + + + Creates a new ExcelExporter instance for a data table. + It automatically configures the exporter for all columns and rows of the data table. + + + + + Gets or sets the DocumentName of this ExcelExporter. + + + + + Gets or sets the HeaderBackGroundColor of this ExcelExporter. + + + + + Gets or sets the HeaderFontName of this ExcelExporter. + + + + + Gets or sets the HeaderGroupBackgroundColor of this ExcelExporter. + + + + + Gets or sets the IncludeHeader of this ExcelExporter. + + + + + Adds a header cell. + + + + + Adds a header cell. + + + + + Adds a header cell. + + + + + Removes the column with the specified header text. + + + + + Removes the column at the specified index. + + + + + Adds a data row to the excel output. + Either ExcelCell instances or value objects. + + + + + Generates the content of the output Excel file. + + + + + Generates Hidden Worksheets that contain Possible Values for each DropDown + + + + + DataValidation assigns a DropDown for each cell and restrics possible values to that drop down + + + + + + Gets the file extension for a specified output format. + + + + + Provides location services. + + + + + By default it will return the config value of "Google.Maps.Api.Client.Key". + You can redefine this function in your app to provide a dynamic way to obtain the key. + + + + + By default it will return the config value of "Google.Maps.Api.Client.Signature". + You can redefine this function in your app to provide a dynamic way to obtain the key. + + + + + Gets the Geo Location of a specified postcode using Google API. + This method has daily usage limit of 25000 calls. + + + + + Gets the distance between 2 locations in miles. + + + + + Returns the traveling distance in miles using the Google Maps API. + + + + + Response returned by Google API for each auto-detect language request + + + + ISO Code + + + Confidence [0;1] about the detection + + + Language detected based on iso639-1 + + + + Initialize a new Google auto-detect response + + + + + Creates a new TranslationDownloadedEventArgs instance. + + + + + Gets or sets the Word of this TranslationDownloadedEventArgs. + + + + + Gets or sets the Language of this TranslationDownloadedEventArgs. + + + + + Gets or sets the Translation of this TranslationDownloadedEventArgs. + + + + + Provides translation services. + + + + Length of the query without the phrase + + + Maximum number of characters for each request to Google API + + + Maximum number of characters for each phrase that can be sent to Google Translate + + + Message returned by Google if suspected terms of service abuse. + + + HTML tag for a line break + + + Unicode value of a HTML line break + + + + Gets the language of the current user from cookie. + If no language is specified, then the default language will be used as configured in the database. + + + + + Occurs when a translation is requested. + + + + + Occurs when a word's translation is downloaded off the Internet. + + + + Check the configuration status of Google Translate + + + Set the status of Google Translate as well configured + + + + Uses Google Translate service to translate a specified phrase to the specified language. + + + + + Detect the language of a phrase. + The API can translate multiple piece of text in the same time, if needed create a function with parameter "params string phrase" and return a list of GoogleAutoDetectLanguage. + + + + + Stores one item requested for processing via an external service. + + + + + The name of the integration service used for processing this item. + + + + + The body of the request being sent to the integration service. + + + + + The response generated by the remote service. + + + + + The error encountered in processing this item. + + + + + Specifies the date and time when this item was picked for processing. + If it's null, it means this item has not been picked yet. + + + + + Specifies the date and time when this item was first requested and added to the queue. + + + + + Specifies the date when the response was retrieved from the remote service. + + + + + Provides services for integration services. + + + + + Key = TRequest|TResponse + Value = TService + + + + + Will find a Service Registered to process the item. + + + + + Uses the right Integration Service to process the outstanding items in all queues. + This should be called as an Automated Task in the application. + + + + + Uses the right Integration Service to process the next item in that queue. + + + + + Registers an integration service. + + + + + Inserts a queu item to call this service and waits until the item is processed. + Then it will return the response. + + + + + Inserts a request in the queue and immediately returns without waiting for a response. + It will return the token string for this request, that can be queried later on for a response (using Await Response). + + + + + It will wait until a response is provided by another thread to the integration queue item specified by its token. + + + + + Injects an asyncronous waiter which will inject the provided response for one potential future request. + It will check every 5 milliseconds to see if a request item is inserted in the queue, and in that case respond to it. + + + + + Inserts a queu item to call this service and waits until the item is processed. + Then it will return the response. + + + + + Registers an integration service implementor. + + + + + Injects an asyncronous waiter which will inject the provided response for one potential future request. + It will check every 5 milliseconds to see if a request item is inserted in the queue, and in that case respond to it. + + + + + It will wait until a response is provided by another thread to the integration queue item specified by its token. + + + + + Inserts a request in the queue and immediately returns without waiting for a response. + It will return the token string for this request, that can be queried later on for a response (using Await Response). + + + + + It will process the specified request, send it to the remote service, and return the response. + + + + + This class provides a unique file path in a temporary folder (i.e. in the application temp folder + in the system by default and can be provided in Config of the application through a setting with key "Application.TemporaryFilesPath") + After this instance is disposed any possibly created file in the path will be deleted physically. + + If this class fails to dispose an application event will be added to the projects database. + + + + + Creates a new instance of temporary file. The file will have "dat" extension by default. + + + + + Creates a new instance of temporary file. + with the given extension. Extension can either have "." or not + + + + + Finds a proper folder path for temporary files + + + + + Gets or sets the FilePath of this TemporaryFile. + + + + + Disposes this instance of temporary file and deletes the file if provided + + + + + When serializing objects it ignores all properties unless they have [Exposed] attribute. + + + + + Provides PDF services. + + + + + Creates an instance of Html 2 PDF converter service. + + + + + Creates a new Profiler instance. + + + + + Represents a sendable SMS item generated by the application. + + + + + Gets or sets the date this SMS should be sent. + + + + + Gets or sets the date when this SMS was successfully sent. + + + + + Gets or sets the Sender Name. + + + + + Gets or sets the SMS text. + + + + + Gets or sets the SMS recipient number. + + + + + Gets or sets the number of times sending this email has been tried. + + + + + Represents a component that actually delivers SMS messages. + This should be implemented for any 3rd party SMS gateway. + + + + + Delivers the specified SMS message. + The implementation of this method should not handle exceptions. Any exceptions will be logged by the engine. + + + + + Records an unsuccessful attempt to send this SMS. + + + + + Updates the DateSent field of this item and then soft deletes it. + + + + + Sends the specified SMS item. + It will try several times to deliver the message. The number of retries can be specified in AppConfig of "SMS.Maximum.Retries". + If it is not declared in web.config, then 3 retires will be used. + Note: The actual SMS Sender component must be implemented as a public type that implements ISMSSender interface. + The assembly qualified name of that component, must be specified in AppConfig of "SMS.Sender.Type". + + + + + Occurs when an exception happens when sending an sms. Sender parameter will be the ISmsQueueItem instance that couldn't be sent. + + + + + Sends the specified SMS item. + It will try several times to deliver the message. The number of retries can be specified in AppConfig of "SMS.Maximum.Retries". + If it is not declared in web.config, then 3 retires will be used. + Note: The actual SMS Sender component must be implemented as a public type that implements ISMSSender interface. + The assembly qualified name of that component, must be specified in AppConfig of "SMS.Sender.Type". + + + + + Represents a sortable entity type. + + + + + Provides Sorting services for all entities. + + + + + Moves this item before a specified other item. If null is specified, it will be moved to the end of its siblings. + + + + + Moves this item after a specified other item. If null is specified, it will be moved to the beginning of its siblings. + + + + + Moves an item up among its siblings. Returns False if the item is already first in the list, otherwise true. + + + + + Moves an item up to first among its siblings. Returns False if the item is already first in the list, otherwise true. + + + + + Moves an item up to last among its siblings. Always returns true. + + + + + Moves an item down among its siblings. Returns False if the item is already last in the list, otherwise true. + + + + + Swaps the order of two specified items. + + + + + Justifies the order of a specified item and its siblings. + The value of the "Order" property in those objects will be 10, 20, 30, ... + + + + + Discovers the siblings of the specified sortable object. + + + + + Gets the Next order for an ISortable entity. + The result will be 10 plus the largest order of its siblings. + + + + + Generates an identifier for a given string value. + + + + + Gets or sets the Value of this IdentifierGenerator. + + + + + Creates a new IdentifierGenerator instance. + + + + + Builds the identifer + + + + + Creates a new XmlProperties instance. + + + + + Creates a new XmlProperties instance. + + + + + Returns the XML representation of this instance. + + + + + Provides services for object XML serialization. + + + + + Generates an XML text equivalent of the specified object. + + + + + Converts the specified xml text into an instance of T. + + + + + Provides a HttpRequest level cache of objects. + + + + + Gets a specified cached value from the current HttpContext. + If it doesn't exist, it will evaluate the provider expression to produce the value, adds it to cache, and returns it. + + + + + Removes a specified cached object by its key from the current Http Context. + + + + + ADO.NET Facade for submitting single method commands. + + + + + Creates a new DB Connection to database with the given connection string. + + + + + Creates a connection object. + + + + + Creates a connection object. + + + + + Executes the specified command text as nonquery. + + + + + Executes the specified command text as nonquery. + + + + + Executes the specified command text as nonquery. + + + + + Executes the specified command text against the database connection of the context and builds an IDataReader. + Make sure you close the data reader after finishing the work. + + + + + Executes the specified command text against the database connection of the context and returns the single value of the type specified. + + + + + Executes the specified command text against the database connection of the context and returns the single value. + + + + + Executes the specified command text against the database connection of the context and returns the single value. + + + + + Executes a database query and returns the result as a data set. + + + + + Executes a database query and returns the result as a data set. + + + + + Provides a DataAccessor implementation for System.Data.SqlClient + + + + + Provides SQL profiling services. + + + + + To invoice this you can send a request to the application using http://...?Web.Test.Command=Sql.Profile&Mode=Snapshot + + Determines whether the current log data should be removed (false) or kept for future combined future generated (true). + + + + Provides a DataProvider for accessing data from the database using ADO.NET. + + + + + Executes the specified command text as nonquery. + + + + + Executes the specified command text as nonquery. + + + + + Executes the specified command text as nonquery. + + + + + Executes the specified command text against the database connection of the context and builds an IDataReader. Make sure you close the data reader after finishing the work. + + + + + Executes the specified command text against the database connection of the context and returns the single value. + + + + + Executes the specified command text against the database connection of the context and returns the single value. + + + + + Creates a data parameter with the specified name and value. + + + + + Creates a data parameter with the specified name and value and type. + + + + + Deletes the specified record. + + + + + Gets the specified record by its type and ID. + + + + + Reads the many to many relation. + + + + + Saves the specified record. + + + + + Generates data provider specific parameters for the specified data items. + + + + + Generates a data provider specific parameter for the specified data. + + + + + Gets or sets the connection string key used for this data provider. + + + + + Returns a direct database criterion used to eager load associated objects. + Gets the list of specified records. + + + + + Gets or sets the connection string key used for this data provider. + + + + + Provides data access for Interface types. + + + + + Provides a DataProvider for accessing data from the database using ADO.NET based on the SqlClient provider. + + + + + Attaches an event handler to be invoked when the current (root) transaction is completed. + + + + + Attaches an event handler to be invoked when the current (root) transaction is completed. + + + + + A basic implementation of a database query criterion. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + + + + Gets or sets the PropertyName of this Condition. + + + + + Gets or sets the SqlCondition of this Condition. + + + + + Gets or sets the Filter Option of this Condition. + + + + + Gets or sets the Value of this Condition. + + + + + Gets a text representation of the value. + + + + + Returns a string that represents this instance. + + + + + Parses the specified condition string. + + + + + Gets a list of entities of the given type from the database with the specified type matching the specified criteria. + If no criteria is specified, the count of all instances will be returned. + + + + + Enables adding a direct SQL WHERE criteria to the database query. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Item1 = Parameter name (without the @ character). Item2 = parameter value. + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Example: new {Parameter1 = SomeValue(), Parameter2 = AnotherValue()} + + + + Gets the parameters used in the specified custom SQL criteria. + + + + + Gets or sets the SQL criteria. + + + + + N/A. + + + + + Specifies whether this criteria is compatible with normal caching. + + + + + Returns a string that represents this instance. + + + + + N/A. + + + + + Provides options for filter functions. + + + + + Gets the database operator equivalent for this filter option. + + + + + Creates a new FullTextIndexQueryOption instance. + + + + + Gets or sets the Keywords of this FullTextIndexQueryOption. + + + + + Gets or sets the Properties of this FullTextIndexQueryOption. + + + + + Provides an abstraction for database query criteria. + + + + + Creates a new ResultSetSizeQueryOption instance. + + + + + Creates a new ResultSetSizeQueryOption instance. + + + + + The direct SQL sort expression. E.g: MyColumn DESC, Something + + + + + Creates a FullTextSearch option for the search query. + + + + + Creates a new ResultSetSizeQueryOption instance. + + + + + Gets or sets the Number of this ResultSetSizeQueryOption. + + + + + Creates a new SortQueryOption instance. + + + + + Gets or sets the Property of this SortQueryOption. + + + + + Gets or sets the Descending of this SortQueryOption. + + + + + Provides a cache of objects retrieved from the database. + + + + + Gets the current cache. + + + + + Gets an entity from cache. Returns null if not found. + + + + + Gets an entity from cache. Returns null if not found. + + + + + Gets an entity from cache. Returns null if not found. + + + + + Adds a given entity to the cache. + + + + + Removes a given entity from the cache. + + + + + Removes all entities of a given types from the cache. + + + + + Gets or sets the SyncFilePath of this DataProviderModelConfigurationSection. + + + + + Gets or sets the SyncFilePath of this DataProviderModelConfigurationSection. + + + + + Finds an entity with unknown type from its given id. + + + + + Gets the runtime type from the currently loaded assemblies. + + The type name (including namespace, but excluding assembly). + + + + Creates a watcher on the current cache. + + + + + Reads the many to many relation and returns the IDs of the associated objects. + + + + + Determines whether this data provider factory handles interface data queries. + + + + + Gets or sets the ConnectionString of this DatabaseContext. + + + + + Data access code for Application components. + + + + + Gets a list of entities of the given type from the database with the specified type matching the specified criteria. + If no criteria is specified, the count of all instances will be returned. + + + + + Gets a list of entities of the given type from the database. + + + + + Clears the cache of all items. + + + + + If there is an existing open transaction, it will simply run the specified action in it, Otherwise it will create a new transaction. + + + + + Returns the first record of the specified type of which ToString() would return the specified text . + + + + + Gets the total number of objects in cache. + + + + + Reloads a specified instance from database. This should be used when an object in memory is not synscronized with the database. + + + + + Gets a reloaded instance from the database to get a synced copy. + + + + + Determines if there is any object in the database of the specified type. + + + + + Determines if there is any object in the database of the specified type matching a given criteria. + + + + + Determines whether there is no object of the specified type in the database. + + + + + Determines whether none of the objects in the database match a given criteria. + + + + + Deletes the specified record from the data repository. + + + + + Deletes the specified record from the data repository. + + + + + Deletes the specified instances from the data repository. + The operation will be done in a transaction. + + + + + Deletes all objects of the specified type. + + + + + + Deletes all objects of the specified type matching the given criteria. + + + + + Updates all records in the database with the specified change. + + + + + Finds the object with maximum value of the specified property. + + + + + Finds the object with minimum value of the specified property. + + + + + Find an object with the specified type from the database. + When used with no criteria, returns the first object found of the specified type. + If not found, it returns null. + + + + + Find an object with the specified type from the database. + When used with no criteria, returns the first object found of the specified type. + If not found, it returns null. + + The order by expression to run at the database level. It supports only one property. + Specified whether the order by is descending. + + + + Finds an object with the specified type matching the specified criteria. + If not found, it returns null. + + + + + Gets an Entity of the given type with the given Id from the database. + If it can't find the object, an exception will be thrown. + + The primary key value of the object to load in string format. + + + + Get an entity with the given type and ID from the database. + If it can't find the object, an exception will be thrown. + + The type of the object to get + The primary key value of the object to load. + + + + Get an entity with the given type and ID from the database. + If it can't find the object, an exception will be thrown. + + The type of the object to get + The primary key value of the object to load. + + + + Get an entity with the given type and ID from the database. + If it can't find the object, an exception will be thrown. + + The type of the object to get + The primary key value of the object to load. + + + + Get an entity with the given type and ID from the database. + If it can't find the object, an exception will be thrown. + + The primary key value of the object to load. + + + + Get an entity with the given type and ID from the database. + If it can't find the object, an exception will be thrown. + + The primary key value of the object to load. + + + + Get an entity with the given type and ID from the database. + If the key does not exist, it will return null, rather than throwing an exception. + + The type of the object to get + The primary key value of the object to load. + + + + Get an entity with the given type and ID from the database. + If the key does not exist, it will return null, rather than throwing an exception. + + The type of the object to get + The primary key value of the object to load. + + + + This is invoked for every Database.GetList() call. You can use this to inject additional criteria or query options globally. + + + + + Returns a list of entities with the specified type. + + + + + Gets a list of entities of the given type from the database. + + + + + Returns a list of entities with the specified type. + + + + + Returns a list of entities with the specified type. + + + + + Gets the list of objects with the specified type matching the specified criteria. + If no criteria is specified, all instances will be returned. + + + + + Gets a list of entities of the given type from the database. + + + + + Gets a list of entities of the given type from the database. + + The order by expression to run at the database level. It supports only one property. + Specified whether the order by is descending. + + + + Gets a list of entities of the given type from the database. + + + + + Returns a list of entities with the specified type. + + + + + Gets the list of T objects from their specified IDs. + + + + + Gets the list of objects from their specified IDs. + + + + + It's raised when any record is saved or deleted in the system. + + + + + Gets the assemblies for which a data provider factory has been registered in the current domain. + + + + + Creates a transaction scope. + + + + + Inserts or updates an object in the database. + + + + + Inserts or updates an object in the database. + + + + + Saves the specified records in the data repository. + The operation will run in a Transaction. + + + + + Runs an update command on a list of given objects and persists the updated objects in database. + It returns the updated instances. + + The objects to be updated in database. + Update action. For example: o=>o.Property = "Value" + + + + Runs an update command on a list of given objects and persists the updated objects in database. + It returns the updated instances. + + The objects to be updated in database. + Update action. For example: o=>o.Property = "Value" + + + + Runs an update command on a given object's clone and persists the updated object in database. It returns the updated instance. + + The object to be updated in database. + Update action. For example: o=>o.Property = "Value" + + + + Runs an update command on a given object's clone and persists the updated object in database. It returns the updated instance. + + The object to be updated in database. + Update action. For example: o=>o.Property = "Value" + + + + Inserts the specified objects in bulk. None of the object events will be triggered. + + + + + Updates the specified objects in bulk. None of the object events will be triggered. + + + + + Saves the specified records in the data repository. + The operation will run in a Transaction. + + + + + Saves the specified records in the data repository. + The operation will run in a Transaction. + + + + + Saves the specified records in the data repository. + The operation will run in a Transaction. + + + + + A repository of transient records in the user's session memory. + + + + + Clears the old objects in session memory. + + + + + Clears the old objects in session memory. This method is meant to be called periodically every few minutes. + + The maximum age allowed to live in the memory. Any objects added before the specified time span will be cleared. + + + + Gets the current instance of the session memory, specific to the current ASP.NET user (or "Current Thread" when ASP.NET session is not available in the current context). + + + + + Gets a record from the session memory by its specified ID. + + + + + Gets a record from the session memory by its specified ID and Type. + + + + + Gets a list of objects of the specified type, matching the specified criteria. + + + + + Gets a list of objects of the specified type, matching the specified criteria. + + + + + Finds the first object matching the specified criteria. + + + + + Adds a specified records to the Session memory. + + + + + Adds a specified record to the Session memory. If another object with the same ID already exists, the new object will replace it. + + + + + Removes a specified record from the session memory. + + + + + When applied to a property, indicates that such property is AutoNumber (or Identity in SQL Server). + + + + + Determines if a given property is auto number. + + + + + Creates a new CacheDependantAttribute instance. + + + + + Gets the dependent type. + + + + + Gets a list of types that depend on a given entity. + + + + + Finds a list of types that depend on a given entity. + + + + + When applied to a property, it marks it as the primary key of that class. + This is intended to be used by object relational mapping (ORM) tools. + + + + + When applied to a property, indicates that such property does not exist in the database. + + + + + Determines if a given property is calculated. + + + + + When applied to a property of type DateTime or Nullable[DateTime] it specifies that values are for Date only, + and the time part is meant to be disregarded. + + + + + When applied to a class, indicates whether data access events should be logged for instances of that type. + + + + + Creates a new LogEventsAttribute instance. + + + + + Gets a list of types that depend on a given entity. + + + + + Gets a list of types that depend on a given entity. + + + + + Returns a list of types that depend on a given entity. + + + + + Gets or sets the Lazy of this ManyToManyAttribute. + + + + + When applied to a class, defines its Application data accessor type. + + + + + Specifies if a type is cacheable. + + + + + Creates a new CacheObjectsAttribute instance. + + + + + Determines if caching is enabled for a given type. + + + + + Determines if small table is specified for a given type. + + + + + Determines if soft delete is enabled for a given type. + + + + + Provides support for bypassing softdelete rule. + + + + + Creates a new Context instance. + + + + + Determines if SoftDelete check should the bypassed in the current context. + + + + + Provides services for application events and general logging. + + + + + Gets the changes XML for a specified object. That object should be in its OnSaving event state. + + + + + Gets the changes applied to the specified object. + Each item in the result will be {PropertyName, { OldValue, NewValue } }. + + + + + Records the execution result of a scheduled task. + + The name of the scheduled task. + The time when this task was started. + + + + Records the execution result of a scheduled task. + + The name of the scheduled task. + The time when this task was started. + The Exception that occurred during the task execution. + + + + Loads the item recorded in this event. + + + + + Gets the current user id. + + + + + Gets the IP address of the current user. + + + + + Records the provided exception in the database. + + + + + Records the provided exception in the database. + + + + + Logs the specified event as a record in the ApplicationEvents database table. + + The event title. + The details of the event. + The record for which this event is being logged (optional). + The ID of the user involved in this event (optional). If not specified, the current ASP.NET context user will be used. + The IP address of the user involved in this event (optional). If not specified, the IP address of the current Http context (if available) will be used. + + + + This class provides default services for application events and general logging. + + + + + It's fired just before the event log instance for a SAVE operation is saved in the database. + Handle it to modify the event log instance, add additional data, etc. + + + + + It's fired just before the event log instance for a delete operation is saved in the database. + Handle it to modify the event log instance, add additional data, etc. + + + + + Specifies a factory to instantiate EmailQueueItem objects. + + + + + Gets the IP address of the current user. + + + + + Gets the current user id. + + + + + Gets the changes applied to the specified object. + Each item in the result will be {PropertyName, { OldValue, NewValue } }. + + + + + Gets the changes XML for a specified object. That object should be in its OnSaving event state. + + + + + Gets the data of a specified object's properties in a dictionary. + + + + + Records the execution result of a scheduled task. + + The name of the scheduled task. + The time when this task was started. + + + + Records the execution result of a scheduled task. + + The name of the scheduled task. + The time when this task was started. + The Exception that occurred during the task execution. + + + + Records the provided exception in the database. + + + + + Records the provided exception in the database. + + + + + Logs the specified event as a record in the ApplicationEvents database table. + + The event title. + The details of the event. + The record for which this event is being logged (optional). + The ID of the user involved in this event (optional). If not specified, the current ASP.NET context user will be used. + The IP address of the user involved in this event (optional). If not specified, the IP address of the current Http context (if available) will be used. + + + + Loads the item recorded in this event. + + + + + Records information in the ApplicationEvents table. + + + + + Creates a new UndoContext instance. + + + + + Entity, a persistent object in the application. + + + + + Base constructor (called implicitly in all typed entity classes) to initialize an object. + + + + + Gets the id of this entity. + + + + + Invalidates its cached references. + + + + + Determines whether this is a newly created instace. This value will be True for new objects, and False for anything loaded from the database. + + + + + Determines whether this instance is "soft-deleted". + + + + + Determines whether this object is already cloned and updated in the database without this instance being updated. + + + + + Initializes this instance. + This can be overridden in the business entity types to provide "construction" logic. + + + + + Gets the primitive properties of this tye. + + + + + Extracts the primitive properties of a specified type. + + + + + Returns a string that contains all primitive properties of this instance. + This should be used normally in "full text search". + + + + + Validates the data for the properties of the current instance. + It throws a ValidationException if an error is detected + + + + + Validates this instance to ensure it can be saved in a data repository. + If this finds an issue, it throws a ValidationException for that. + This calls ValidateProperties(). Override this method to provide custom validation logic in a type. + + + + + This even is raised just after this instance is loaded from the database. + + + + + This event is raised just before this instance is saved in the data repository. + + + + + This is raised just before the object is being Validated. + It will automatically be called in Database.Save() method before calling the Validate() method. + Use this to do any last-minute object modifications, such as initializing complex values. + + + + + This event is raised after this instance is saved in the database. + + + + + Raises the event. + + The instance containing the event data. + + + + This event is raised just before this instance is deleted from the database. + + + + + This event is raised just after this instance is deleted from the database. + + + + + Creates a shallow copy of this object. + If you need to update an instance loaded from the database, you must create a Clone of it before applying any changes. + Otherwise you will be editing the "live" instance from the cache, that is used by all other threads! + + + + + Determines whether the specified object is equal to this instance. + + + + Determines whether the specified object is equal to this instance. + + + + Implements the operator ==. + + + + + Compares the current instance with another object of the same type. + + An object to compare with this instance. + + + + Gets or sets the ID of this object. + + + + + Gets the original id of this type as it was in the database. + + + + + Returns a hash code for this instance. + + + A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + + + + + Determines whether this instance is equal to another specified instance. + + + + + Gets the ID of this object. + + + + + Provides services for Entity objects. + + + + + Determines whether the specified record is immutable, or closed for changes. + An object marked as immutable is shared in the application cache. Therefore it must not be changed. + + + + + Marks the specified object as immutable. + + + + + This event is raised for the whole Entity type before "any" object is saved in the database. + You can handle this to provide global functionality/event handling scenarios. + + + + + This event is raised for the whole Entity type after "any" object is saved in the database. + You can handle this to provide global functionality/event handling scenarios. + + + + + This event is raised for the whole Entity type before "any" object is deleted from the database. + You can handle this to provide global functionality/event handling scenarios. + + + + + This event is raised for the whole Entity type before "any" object is validated. + You can handle this to provide global functionality/event handling scenarios. + This will be called as the first line of the base Entity's OnValidating method. + + + + + This event is raised for the whole Entity type after "any" object is deleted from the database. + You can handle this to provide global functionality/event handling scenarios. + + + + + Sets the state of an entity instance to saved. + + + + + Creates a new clone of an entity. This will work in a polymorphic way. + + + + + Creates a new clone of an entity. This will work in a polymorphic way. + + + + + Sets the ID of an object explicitly. + + + + + Read the value of a specified property from a specified object. + + + + Represents a base Entity with ID of type Guid. + + + + Gets a unique Identifier for this instance. In the database, this will be the primary key of this object. + + + + + Creates a shallow copy of this object. + If you need to update an instance loaded from the database, you must create a Clone of it before applying any changes. + Otherwise you will be editing the "live" instance from the cache, that is used by all other threads! + + + + + Represents an M# Entity. + + + + + Determines whether this object has just been instantiated as a new object, or represent an already persisted instance. + + + + + Validates this instance and throws ValidationException if necessary. + + + + + Gets the id of this entity. + + + + + Invalidates all its cached referencers. + + + + + A persistent object in the application. + + + + + Gets the ID. + + + + + Gets a unique Identifier for this instance. In the database, this will be the primary key of this object. + + + + + Gets the geo distance in miles between this and another specified location. + + + + + Gets the geo distance in miles between this located object and a specified location. + + + + + Gets the geo distance in miles between this location and a specified located object. + + + + + Gets the geo distance in miles between this and another specified located object. + + + + + Provides shortcut access to the value specified in web.config (or App.config) under AppSettings or ConnectionStrings. + + + + + Gets the connection string with the specified key. + + + + + Gets the value configured in Web.Config (or App.config) under AppSettings. + + + + + Gets the value configured in Web.Config (or App.config) under AppSettings. + If no value is found there, it will return the specified default value. + + + + + Reads the value configured in Web.Config (or App.config) under AppSettings. + It will then convert it into the specified type. + + + + + Reads the value configured in Web.Config (or App.config) under AppSettings. + It will then convert it into the specified type. + If no value is found there, it will return the specified default value. + + + + + Reads the value configured in Web.Config (or App.config) under AppSettings. + It will then try to convert it into the specified type. + If no vale is found in AppSettings or the conversion fails, then it will return null, or the default value of the specified type T. + + + + + Determines whether the specified key is defined in configuration file. + + + + + Reads the app settings from a specified configuration file. + + + + + Marks a property as Serializable (mainly for Json). + + + + + Provides immediate access to retrieved entities. It is aware of deletes and updates. + + + + + Provides immediate access to retrieved entities. It is aware of deletes and updates. + + + + + Gets the entity record from a specified database call expression. + The first time it is loaded, all future calls will be immediately served. + + + + + When applied to a method it will skip all GCop warnings for that method (not to be abused). + It is bad to escape any cop. Always try to avoid using this attribute by fixing your code. + + + + + Determines whether this user has a specified role. + + + + + Determines if this user Is Authenticated. + + + + + Compresses the specified folders into a 7 Zip archive folder. + + + + + Compresses the specified folders into a 7 Zip archive folder. + + The maximum size of each splitted size in Kilo Bytes + + + + Compresses the specified folders into a 7 Zip archive folder. + + The maximum size of each splitted size in Kilo Bytes + + + + Compresses the specified source files into a temp 7Zip file and returns the temp 7Zip file. + + + + + Compresses the specified source files into a 7Zip file and returns the data of the 7Zip file. The temp file is deleted. + + + + + Creates a 7Zip file from the specified files. + + + + + Compresses the specified folders into a 7 Zip archive folder. + + Use wildcards. Example: *\Folder\Sub-folder\* + + + + Gets the binary data of this image. + + + + + Converts the specified binary data to a bitmap. + + + + + Determines whether the specified binary data is for a valid image. + + + + + Returns a resized version of this image. + + + + + Brightens or darkens this image to the specified level. Level should be between 0 and 255. + 0 Means totally dark and 255 means totally bright. + + + + + Creates a graphics object for this image. + + + + + Crops this image with the specified rectangle. + + + + + Generates a color pallete for a GIF image. + + + + + Generates a color pallete based on the colors used in a specified image. + + + + + Finds all colours used in the specified image. + The result will be the list of colours sorted by then umber of times that is used. + + + + + Finds the index of the relevant entry in the new pallete to the specified color. + + + + + Gets the difference between the 2 specified colors. + + + + + A utility to resize and optimise image files. + + + + + Creates a new instance of ImageOptimizer class with default settings. + + + + + Creates a new instance of ImageOptimizer class. + + + + + Gets the available output image formats. + + + + + Applies the settings of this instance on a specified source image, and provides an output optimized/resized image. + + + + + Optimizes the specified source image and returns the binary data of the output image. + + + + + Applies optimization settings on a a source image file on the disk and saves the output to another file with the specified path. + + + + + Applies optimization settings on a source image file. + Please note that the original file data is lost (overwritten) in this overload. + + + + + Gets an image which is a column of this image at the specified index. + + + + + Gets the width of a specified text in this font. + + + + + Inserts the specified image at the specified column inside this host image. + + + + + Creates a rotated version from this image. + + The number of degrees to rotate this image. Direction of rotation will be clock-wise. + + + + Stretches the specified image. + + + + + Generates a public/private key for asymmetric encryption. + + + + + Encrypts the specified text with the specified public key. + + + + + Decrypts the specified text with the specified public/private key pair. + + + + + Encrypts the specified text with the specified password. + + + + + Decrypts the specified encrypted text with the specified password. + + + + + Gets or sets the Method of this MethodPointer. + + + + + Gets the name of this method. + + + + + Returns a string that represents this instance. + + + + + Performs an implicit conversion from a specified lambda expression to . + + + + + Performs an implicit conversion from a specified lambda expression to . + + + + + Performs an implicit conversion from a specified lambda expression to . + + + + + Creates a new Base32Integer instance. + + + + + Creates a new Base32Integer instance. + + + + + Converts an array of bytes to a Base32-k string. + + + + + Converts a Base32-k string into an array of bytes. + + + + + Creates a CachedValue the specified value builder. + + + + + Creates a new CachedValue instance. + + + + + Initializes a new CachedValue instance with lazy loading support. + + The value builder. + + + + Stores the underlying value. + + + + + Gets the underlying value. + + + + + Gets or sets the Data property of this EventArgs. + + + + + Creates a new EventArgs instance. + + + + + Creates a new EventArgs instance. + + + + + Gets or sets the Data property of this EventArgs. + + + + + Gets or sets the Data property of this EventArgs. + + + + + Creates a new EventArgs instance. + + + + + Creates a new EventArgs instance. + + + + + Creates a new EventArgs instance. + + + + + By default provides the current server's timezone. + You can override this to provide user-specific time-zones or based on any other system setting. + + + + + If set, it will provide the "Now" value. + Note: This has lower priority than thread-level overrides. + + + + + Gets the local current date/time of the application. + By default it equals to System.DateTime.Now. + To override its value, you should wrap the calling code inside "using (LocalTime.SetNow(some date)) { ... }" +   + Examples: + ————————————————————————————————— + var now = LocalTime.Now // which is identical to DateTime.Now + ————————————————————————————————— + using (LocalTime.Set(DateTime.Parse("15/01/2000 06:13"))) + { +  var date = LocalTime.Now; // that sets date to 15th Jan 200 at 6:13. + } + + + + + Gets the current Universal Time. + + + + + Gets the local current date of the application (no time). + By default it equals to System.DateTime.Today. + To override its value, you should wrap the calling code inside "using (LocalTime.SetNow(some date)) { ... }" +   + Examples: + ————————————————————————————————— + var now = LocalTime.Today // which is identical to DateTime.Today + ————————————————————————————————— + using (LocalTime.Set(DateTime.Parse("15/01/2000 06:13"))) + { +  var date = LocalTime.Today; // that sets date to 15th Jan 200. + } + + + + + Gets the current Universal Time's date part (without time). + + + + + Sets the current time of the application. +   + Examples: + ————————————————————————————————— + using (LocalTime.Set(DateTime.Parse("15/01/2000 06:13"))) + { + //Here any call for LocalTime.Now/Today will return 15th of Jan 2000 (at 6:30). + } + + + + + Sets the current time function of the application. + + + + + Sets the current time function of the application. + Note: This has lower priority than thread-level time setting. + + + + + Freezes the time to the current system time. +   + Examples: + ————————————————————————————————— + using (LocalTime.Stop()) + { +  // Freezes the time to Datetime.Now. + } + + + + + Adds the specified time to the current LocalTime. + + + + + Creates a new OverriddenApplicationDate instance. + + + + + Provides process context data sharing mechanism to pass arguments and data around execution in a shared pipeline. + It supports context nesting. + + + + + Creates a new Process Context. + + + + + Creates a new Process Context with the specified key and data. + + + + + Sets the default data expression, when no context data is available. + + + + + Gets or sets the Data of this ProcessContext. + + + + + Gets or sets the key of this ProcessContext. + + + + + A number of nested process context objects in the currenly executing thread. + + + + + Gets the data of the current context with default key (null). + + + + + Gets the data of the current context with the specified key. + + + + + Disposes the current process context and switches the actual context to the containing process context. + + + + + Provides a facade for easiper creation of a Process Context. + + + + + Create a process context for the specified object. + To access the context object, you can use ProcessContext<Your Type>.Current. + + + + + Create a process context for the specified object with the specified key. + To access the context object, you can use ProcessContext<Your Type>.GetCurrent(key). + + + + + Provides a range of values. + + + + + Creates a new Range instance. + + + + + Creates a new Range instance with the specified boundaries. + + + + + Gets or sets the From of this Range. + + + + + Gets or sets the To of this Range. + + + + + Gets the length of this range. For a date range, use the TimeOfDay property of the returned date time. + + + + + Determines whether or not this range lacks the given value. + + + + + Determines whether or not this range cotnains the given value + + + + + Determines whether or not this range contains with the given range + + + + + Determines whether or not this range intersects with the given range + + + + + Returns: {From} - {To}. + + + + + Returns {From}{rangeSeparator}{To}. + + + + + Returns the From and To values formatted by the specified format and then joined together with the specified rangeSeparator. + + E.g. {0:dd MM yy} + + + + Provides a collection of ranges to simplify the manipulation of them. + This class is not thread-safe. + + + + + Represents a globally unique identifier (GUID) with a shorter string value. + + + + + Equivalent to Guid.Empty. + + + + + Parses a specified text (that is either a normal Guid or a short guid). + + + + + Creates a ShortGuid from a base64 encoded string + + The encoded guid as a + base64 string + + + + Creates a ShortGuid from a Guid + + The Guid to encode + + + + Gets/sets the underlying Guid + + + + + Gets/sets the underlying base64 encoded string + + + + + Returns the base64 encoded guid as a string + + + + + + Returns a value indicating whether this instance and a + specified Object represent the same type and value. + + The object to compare + + + + + Returns the HashCode for underlying Guid. + + + + + + Initialises a new instance of the ShortGuid class + + + + + + Creates a new instance of a Guid using the string value, + then returns the base64 encoded version of the Guid. + + An actual Guid string (i.e. not a ShortGuid) + + + + + Encodes the given Guid as a base64 string that is 22 + characters long. + + The Guid to encode + + + + + Decodes the given base64 string + + The base64 encoded string of a Guid + A new Guid + + + + Determines if both ShortGuids have the same underlying Guid value. + + + + + Determines if both ShortGuids do not have the + same underlying Guid value. + + + + + Implicitly converts the ShortGuid to it's string equivilent + + + + + Implicitly converts the ShortGuid to it's Guid equivilent + + + + + + + Implicitly converts the string to a ShortGuid + + + + + + + Implicitly converts the Guid to a ShortGuid + + + + + + + Provides extensions methods to Standard .NET types. + + + + + Gets the full path of a file or directory from a specified relative path. + + + + + Will set the Position to zero, and then copy all bytes to a memory stream's buffer. + + + + + Posts the specified data to a url and returns the response as string. + All properties of the postData object will be sent as individual FORM parameters to the destination. + + An anonymous object containing post data. + + + + Gets the response data as string. + + + + + Gets the response data as string. + + + + + Posts the specified object as JSON data to this URL. + + + + + Posts the specified data to this url and returns the response as string. + All items in the postData object will be sent as individual FORM parameters to the destination. + + + + + Posts the specified data to this url and returns the response as string. + All items in the postData object will be sent as individual FORM parameters to the destination. + + + + + Posts the specified data to a url and returns the response as string. + All items in the postData object will be sent as individual FORM parameters to the destination. + + + + + Posts the specified data to a url and returns the response as string. + + + + + Posts the specified data to a URL and returns the response as string asynchronously. + + An anonymous object containing post data. + + + + Posts the specified data to a URL and returns the response as string asynchronously. + + + + + Posts the specified data to a URL and returns the response as string asynchronously. + + + + + Returns a nullable value wrapper object if this value is the default for its type. + + + + + Returns Yes or No string depending on whether the result is true of false. + + + + + Returns Yes or No string depending on whether the result is true of false. + + + + + Darkens the specified color. + + The color. + The pc. + + + + Lightens the specified color. + + The color. + The pc. + + + + Adds the specified query string setting to this Url. + + + + + Gets the query string parameters of this Url. + + + + + Removes the specified query string parameter. + + + + + Removes the specified query string parameter. + + + + + Removes all query string parameters of this Url and instead adds the specified ones. + + + + + Gets the root of the requested website. + + + + + Downloads the text in this URL. + + + + + Downloads the data in this URL. + + + + + Downloads the data in this URL. + + + + + Reads all text in this stream as UTF8. + + + + + Returns the translation of this object's string representation. + + + + + Gets the Html Encoded version of this text. + + + + + Gets the Html Decoded version of this text. + + + + + Gets the Url Encoded version of this text. + + + + + Gets the Url Decoded version of this text. + + + + + Properly sets a query string key value in this Uri, returning a new Uri object. + + + + + Casts this data table's records into a list of typed objects. + + + + + Casts this data table's records into a list of typed objects. + An anonymouse object containing property mapping information. + e.g.: new {Property1 = "Property name in CSV", Property2 = "...", set_Property1 = new Func<string, object>(text => Client.Parse(value)) } + + + + + Casts this data table's records into a list of typed objects. + An anonymouse object containing property mapping information. + e.g.: new {Property1 = "Property name in CSV", Property2 = "...", set_Property1 = new Func<string, object>(text => Client.Parse(value)) } + + + + + Finds the property mappings for the specified target type, CSV column names and user declared mappings. + + + + + Creates an object of the specified type with the specified data and property mappings. + + + + + Gets the CSV data equivalent to this data table. + + + + + Gets the rows of this data table in a LINQ-able format.. + + + + + Determines if a specified date is an English national holiday or weekend. + + + + + Dictionary that contains exceptional dates for Early May Bank Holiday. + Key: Year, Value: Exceptional Date for that year. + + + + + Dictionary that contains exceptional dates for Spring Bank Holiday. + Key: Year, Value: Exceptional Date for that year. + + + + + Dictionary that contains exceptional dates for Last Summer Bank Holiday. + Key: Year, Value: Exceptional Date for that year. + + + + + Dictionary that contains exceptional dates for Last Summer Bank Holiday. + Key: Year, Value: Exceptional Date for that year. + + + + + Check if Date it is Additional bank holiday in that year + + the date to check + + + + Gets the first upcoming specified week day. + + + + + Gets the last occurance of the specified week day. + + + + + Get Early May Bank Holiday Date for the required year + + the year to check if in that year there is an exception to the normal bank holiday rule + + + + Get Spring Bank Holiday Date for the required year + + the year to check if in that year there is an exception to the normal bank holiday rule + + + + Get Late Summer Bank Holiday Date for the required year + + the year to check if in that year there is an exception to the normal bank holiday rule + + + + Get Boxing Day Holiday Date for the required year + + the year to check if in that year there is an exception to the normal bank holiday rule + + + + Determines whether this day is in the same week (Monday to Sunday) as the specified other date. + + + + + Determines whether this day is in the same month as the specified other date. + + + + + Gets the number of days in this year. + + + + + Gets the number of days in this month. + + + + + Gets the mid-night of Monday of this week. + + + + + Gets one tick before the start of next week. + + + + + Gets the mid-night of the first day of this month. + + + + + Gets the end of this day (one tick before the next day). + + + + + Determines whether this date is in the future. + + + + + Determines whether this date is in the future. + + + + + Determines whether this date is in the future. + + + + + E.g. 4am or 6:30pm. + + + + + Gets the next working day. + + + + + Gets the days between this day and the specified other day. + It will remove TIME information. + + + + + Gets the previous working day. + + + + + Determines whether this date is between two sepcified dates. + + + + + Calculates the total working times in the specified duration which are between the two specified day-hours. + This can be used to calculate working hours in a particular duration. + + + + + Returns a MS T-SQL-safe DateTime value for use in queries (i.e. prevents date values earlier than 1/1/1753). + + + + + Returns the Date of the beginning of Quarter for this DateTime value (time will be 00:00:00). + + + + + Returns the Date of the end of Quarter for this DateTime value (time will be 11:59:59). + + + + + Returns the Date of the end of Quarter for this DateTime value (time will be 11:59:59). + + + + + Gets the last date with the specified month and day. + + + + + Gets the last date with the specified month and day. + + + + + Returns the Date of the end of Quarter for this DateTime value (time will be 11:59:59). + + + + + Gets the minimum value between this date and a specified other date. + + + + + Gets the maximum value between this date and a specified other date. + + + + + Adds the specified number of weeks and returns the result. + + + + + Gets the latest date with the specified day of week and time that is before (or same as) this date. + + + + + Returns the local time equivalent of this UTC date value based on the TimeZone specified in Localtime.TimeZoneProvider. + Use this instead of ToLocalTime() so you get control over the TimeZone. + + + + + Returns the local time equivalent of this UTC date value based on the TimeZone specified in Localtime.CurrentTimeZone(). + Use this instead of ToLocalTime() so you get control over the TimeZone. + + + + + Returns the equivalent Universal Time (UTC) of this local date value. + + + + + Returns the equivalent Universal Time (UTC) of this local date value. + + + + + Returns the equivalent Universal Time (UTC) of this local date value. + + + + + Rounds this up to the nearest whole second. + + + + + Rounds this up to the nearest whole minute. + + + + + Rounds this up to the nearest whole hour. + + + + + Rounds this up to the nearest interval (e.g. second, minute, hour, etc). + + + + + Invokes the specified action for the specified number of times. + + The action to execute. + The number of times to try running the action. + The time to wait before every two retries. + The action to run every time the method invokation fails. You can use this to log the error. + + + + Invokes the specified function for the specified number of times. + + The function to evaluate. + The number of times to try running the action. + The time to wait before every two retries. + The action to run every time the method invokation fails. You can use this to log the error. + + + + Invokes this action with the specified timeout. + If the specified time is up, a TimeoutException will be raised. + + + + + If specified as recursive and harshly, then it tries multiple times to delete this directory. + + + + + Will try to delete a specified directory by first deleting its sub-folders and files. + + + + + Copies the entire content of a directory to a specified destination. + + + + + Determines whether the file's contents start with MZ which is the signature for EXE files. + + + + + Copies the entire content of a directory to a specified destination. + + + + + Copies this file to a specified destination directiry with the original file name. + + + + + Gets a file info with the specified name under this folder. That file does not have to exist already. + + + + + Gets a subdirectory with the specified name, or null if it doesn't exist. + + + + + Gets or creates a subdirectory with the specified name. + + + + + Gets the subdirectory tree of this directory. + + + + + Creates the directory if it doesn't already exist. + + + + + Clears the specified folder by deleting all its sub-directories and files. + + + + + Determines whether this folder is empty of any files or sub-directories. + + + + + Rounds this value. + + + + + Rounds this value. + + + + + In mathematics and computer science, truncation is the term for limiting the number of digits right of the decimal point, by discarding the least significant ones. + Note that in some cases, truncating would yield the same result as rounding, but truncation does not round up or round down the digits; it merely cuts off at the specified digit. + + + + + Drops the floating point digits from the end of the money string. + For example for 1500.00 it will yield "£1,500" and for 18.56 it will yield "£18.56". + + + + + Drops the floating point digits from the end of the money string. + For example for 1500.00 it will yield "£1,500" and for 18.56 it will yield "£18.56". + + + + + Converts this OA date value to a DateTime object. + + + + + Converts this OA date value to a DateTime object. + + + + + Converts degree into radians. + + + + + Return this value as a percentages the of the given total. + + + + + Return this value as a percentages the of the given total. + + + + + Rounds up to nearest value. + + + + + Rounds up to nearest value. + + + + + Rounds down to nearest value with the intervals specified. + + + + + Rounds down to nearest value with the intervals specified. + + + + + Determines if this double value is almost equal to the specified other value. + This should be used instead of == or != operators due to the nature of double processing in .NET. + + Specifies the tolerated level of difference. + + + + Determines if this float value is almost equal to the specified other value. + This should be used instead of == or != operators due to the nature of float processing in .NET. + + Specifies the tolerated level of difference. + + + + Gets the embedded resource name for a specified relative file path in the project. + If the resulting resource name does not exist in this assembly it will throw. + + The default namespace of your Visual Studio project. + For example MyRootFolder\MySubFolder\MyFile.cs (this is case sensitive). + + + The default namespace of your Visual Studio project. + For example MyRootFolder\MySubFolder\MyFile.cs (this is case sensitive). + + + The default namespace of your Visual Studio project. + For example MyRootFolder\MySubFolder\MyFile.cs (this is case sensitive). + + + The default namespace of your Visual Studio project. + For example MyRootFolder\MySubFolder\MyFile.cs (this is case sensitive). + + + The default namespace of your Visual Studio project. + For example MyRootFolder\MySubFolder\MyFile.cs (this is case sensitive). + + + + Determines if this item is in a specified list of specified items. + + + + + Determines if this item is in a specified list of specified items. + + + + + Determines if this item is none of a list of specified items. + + + + + Determines if this item is none of a list of specified items. + + + + + Clones all items of this collection. + + + + + Determines whether this document is an image. + + + + + Gets the id of this entity. + + + + + Validates all entities in this collection. + + + + + Returns this Entity only if the given predicate evaluates to true and this is not null. + + + + + Returns all entity Guid IDs for this collection. + + + + + Returns a more complete text dump of this exception, than just its text. + + + + + Creates a log-string from the Exception. + The result includes the stacktrace, innerexception et cetera, separated by . + + The exception to create the string from. + Additional message to place at the top of the string, maybe be empty or null. + + + + Adds a piece of data to this exception. + + + + + Gets the entire content of this file. + + + + + Gets the entire content of this file. + + + + + Gets the entire content of this file. + + + + + Will set the Position to zero, and then copy all bytes to a memory stream's buffer. + + + + + Will try to delete a specified directory by first deleting its sub-folders and files. + + If set to true, then it will try multiple times, in case the file is temporarily locked. + + + + Saves the specified content on this file. + + + + + Saves the specified content on this file using the Western European Windows Encoding 1252. + + + + + Saves the specified content on this file. + Note: For backward compatibility, for UTF-8 encoding, it will always add the BOM signature. + + + + + Saves the specified content to the end of this file. + + + + + Saves the specified content to the end of this file. + + + + + Saves the specified content to the end of this file. + + + + + Copies this file onto the specified desination path. + + + + + Writes the specified content on this file, only when this file does not already have the same content. + + + + + Determines whether or not this directory exists. + Note: The standard Exists property has a caching bug, so use this for accurate result. + + + + + Determines whether or not this file exists. + Note: The standard Exists property has a caching bug, so use this for accurate result. + + + + + Compresses this data into Gzip. + + + + + Compresses this string into Gzip. By default it will use UTF8 encoding. + + + + + Compresses this string into Gzip. + + + + + Gets the total size of all files in this directory. + + + + + Gets the size of this folder in human readable text. + + + + + Gets the size of this file in human readable text. + + + + + Detects the characters which are not acceptable in File System and replaces them with a hyphen. + + The character with which to replace invalid characters in the name. + + + + Gets a virtual URL to this file. If the file is not in the current website folder it throws an exception. + + + + + Executes this EXE file and returns the standard output. + + + + + Executes this EXE file and returns the standard output. + + + + + Gets the mime type based on the file extension. + + + + + Gets the files in this folder. If this folder is null or non-existent it will return an empty array. + + + + By default it will be UTF-8 + + + + If this file exists, it will simply return it. + Otherwise it will throw a FileNotFoundException with the message of 'File not found: {path}'. + + + + + If this directory exists, it will simply return it. + Otherwise it will throw a DirectoryNotFoundException with the message of 'Directory not found: {path}'. + + + + + Shortens this GUID. + + + + + This will use Database.Get() to load the specified entity type with this ID. + + + + + This will use Database.Get() to load the specified entity type with this ID. + + + + + Gets the full path of this hirarchical entity, seperated by " > ". + + + + + Gets whether this node is a root hierarchy node. + + + + + Gets the full path of this hirarchical entity, seperated by a specified seperation string. + + + + + Gets this node as well as all its children hierarchy. + + + + + Gets all children hierarchy of this node. + + + + + Gets this node as well as all its parents hierarchy. + + + + + Gets all parents hierarchy of this node. + + + + + Gets this node as well as all its parents hierarchy. + + + + + Gets all parents hierarchy of this node. + + + + + Rounds up to nearest value with the intervals specified. + + + + + Rounds down to nearest value with the intervals specified. + + + + + Converts this number to a short textual representation. + + + + + To the word string. + + + Some awesome code from http://stackoverflow.com/questions/2729752/converting-numbers-in-to-words-c-sharp + + The number. + + + + Emits a user readable file size (including units). + + + + + Gets the size text for the given number of bytes. E.g. 4.5MB or 11KB. + + + + + Gets the size text for the given number of bytes. + + + + + Emits a user readable file size (including units). + + + + + Return this value as a percentages the of the given total. + + The value. + The total. + Multiply this by 100. + Rounding decimals to. + + + Static mapping array, used by ToWordString for Units. + + + Static mapping array, used by ToWordString for Tens. + + + + E.g. converts 1 to 1st. Or converts 13 to 13th. + + + + + Concerts this integer value to GUID. + + + + + Gets the index of the first item in this list which matches the specified criteria. + + + + + Adds all items from a specified dictionary to this dictionary. + + + + + Gets all items of this list except those meeting a specified criteria. + + Exclusion criteria + + + + Gets all Non-NULL items of this list. + + + + + Gets all Non-NULL items of this list. + + + + + Gets all Non-NULL items of this list. + + + + + Gets all Non-NULL items of this list. + + + + + Gets all Non-NULL items of this list. + + + + + Gets all Non-NULL items of this list. + + + + + Gets all Non-NULL items of this list. + + + + + Gets all Non-NULL items of this list. + + + + + Adds the specified list to the beginning of this list. + + + + + Adds the specified item(s) to the beginning of this list. + + + + + Performs an action for all items within the list. + + + + + Performs an action for all items within the list. + It will provide the index of the item in the list to the action handler as well. + + + + + Creates a list of the specified runtime type including all items of this collection. + + + + + Gets the minimum value of a specified expression in this list. If the list is empty, then the default value of the expression will be returned. + + + + + Gets the maximum value of a specified expression in this list. If the list is empty, then the default value of the expression will be returned. + + + + + Gets the maximum value of the specified expression in this list. + If no items exist in the list then null will be returned. + + + + + Gets the maximum value of the specified expression in this list. + If no items exist in the list then null will be returned. + + + + + Gets the minimum value of the specified expression in this list. + If no items exist in the list then null will be returned. + + + + + Gets the minimum value of the specified expression in this list. + If no items exist in the list then null will be returned. + + + + + Sorts this list by the specified property name. + + + + + Determines whether this list is equivalent to another specified list. Items in the list should be distinct for accurate result. + + + + + Counts the number of items in this list matching the specified criteria. + + + + + Picks an item from the list. + + + + + Works as opposite of Contains(). + + + + + Determines if this list lacks any item in the specified list. + + + + + Determines if this list lacks all items in the specified list. + + + + + Returns a subset of the items in a given collection in a range including the items at lower and upper bounds. + + + + + Determines of this list contains all items of another given list. + + + + + Determines if this list contains any of the specified items. + + + + + Determines if none of the items in this list meet a given criteria. + + + + + Determines if this is null or an empty list. + + + + + A null safe alternative to Any(). If the source is null it will return false instead of throwing an exception. + + + + + Determines if this list intersects with another specified list. + + + + + Determines if this list intersects with another specified list. + + + + + Selects the item with maximum of the specified value. + If this list is empty, NULL (or default of T) will be returned. + + + + + Selects the item with minimum of the specified value. + + + + + Gets the element after a specified item in this list. + If the specified element does not exist in this list, an ArgumentException will be thrown. + If the specified element is the last in the list, NULL will be returned. + + + + + Gets the element before a specified item in this list. + If the specified element does not exist in this list, an ArgumentException will be thrown. + If the specified element is the first in the list, NULL will be returned. + + + + + Removes a list of items from this list. + + + + + Determines if all items in this collection are unique. + + + + + Returns the union of this list with the specified other lists. + + + + + Returns the union of this list with the specified items. + + + + + Gets the average of the specified expression on all items of this list. + If the list is empty, null will be returned. + + + + + Gets the average of the specified expression on all items of this list. + If the list is empty, null will be returned. + + + + + Gets the average of the specified expression on all items of this list. + If the list is empty, null will be returned. + + + + + Gets the average of the specified expression on all items of this list. + If the list is empty, null will be returned. + + + + + Gets the average of the specified expression on all items of this list. + If the list is empty, null will be returned. + + + + + Gets the average of the specified expression on all items of this list. + If the list is empty, null will be returned. + + + + + Trims all elements in this list and excludes all null and "empty string" elements from the list. + + + + + Determines whether this list of strings contains the specified string. + + + + + Determines whether this list of strings contains the specified string. + + + + + Concats all elements in this list with Environment.NewLine. + + + + + Gets the value with the specified key, or null. + + + + + Chops a list into same-size smaller lists. For example: + new int[] { 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16 }.Chop(5) + will return: { {1,2,3,4,5}, {6,7,8,9,10}, {11,12,13,14,15}, {16} } + + + + + Gets the keys of this dictionary. + + + + + Returns the sum of a timespan selector on this list. + + + + + Returns the indices of all items which matche a specified criteria. + + + + + Replaces the specified item in this list with the specified new item. + + + + + Gets all values from this dictionary. + + + + + Gets all values from this dictionary. + + + + + Returns all elements of this list except those at the specified indices. + + + + + Returns all elements of this list except the last X items. + + + + + Returns all elements of this list except the first X items. + + + + + Removes the nulls from this list. + + + + + Tries to the remove an item with the specified key from this dictionary. + + + + + Tries to the remove an item with the specified key from this dictionary. + + + + + Gets all the values in this collection. + + + + + Converts this collection to a dictionary. + + + + + Determines whether this least contains at least the specified number of items. + This can be faster than calling "x.Count() >= N" for complex iterators. + + + + + Converts this to a KeyValueCollection. + + + + + Adds the properties of a specified [anonymous] object as items to this dictionary. + It ignores duplicate entries and null values. + + + + + Adds the specified key/value pair to this list. + + + + + Adds the specified items to this set. + + + + + Dequeues all queued items in the right order. + + + + + Returns a HashSet of type T (use for performance in place of ToList()). + + + + + Gets all indices of the specified item in this collection. + + + + + Returns an empty collection if this collection is null. + + + + + Returns a DataTable with columns based on the public properties of type T and the rows + populated with the values in those properties for each item in this IEnumerable. + + Optional name for the DataTable (defaults to the plural of the name of type T). + + + + Determines if the specified item exists in this list. + + + + + Determines if the specified item exists in this list. + + + + + Determines if this item is in the specified list. + + + + + Specifies whether this list contains any of the specified values. + + + + + Finds the median of a list of integers + + + + + If this list is null or empty, then the specified alternative will be returned, otherwise this will be returned. + + + + + Performs a specified action on this item if it is not null. If it is null, it simply ignores the action. + + + + + Gets a specified member of this object. If this is null, null will be returned. Otherwise the specified expression will be returned. + + + + + Gets a specified member of this object. If this is null, null will be returned. Otherwise the specified expression will be returned. + + + + + Gets a specified member of this object. If this is null, null will be returned. Otherwise the specified expression will be returned. + + + + + Gets a specified member of this object. If this is null, null will be returned. Otherwise the specified expression will be returned. + + + + + Gets a specified member of this object. If this is null, null will be returned. Otherwise the specified expression will be returned. + + + + + Gets a specified member of this object. If this is null, null will be returned. Otherwise the specified expression will be returned. + + + + + Gets a specified member of this object. If this is null, null will be returned. Otherwise the specified expression will be returned. + + + + + Gets a specified member of this object. If this is null, null will be returned. Otherwise the specified expression will be returned. + + + + + Gets a specified member of this object. If this is null, null will be returned. Otherwise the specified expression will be returned. + + + + + Gets a specified member of this object. If this is null, null will be returned. Otherwise the specified expression will be returned. + + + + + Gets a specified member of this object. If this is null, null will be returned. Otherwise the specified expression will be returned. + + + + + Gets a specified member of this object. If this is null, null will be returned. Otherwise the specified expression will be returned. + + + + + Gets a specified member of this object. If this is null, null will be returned. Otherwise the specified expression will be returned. + + + + + Gets a random boolean value with the specified chance (0-100). + + + + + Gets a random boolean value. + + + + + Generates and returns a Random alphanumeric string. + + Random instance. + Length of string to return + Pass true to miss-out letters that can be confused with numbers (BDIOS) + String instance containing random alphanumeric characters. + + + + Returns [quantity] number of unique random integers within the given range. + + + + + Returns a formatted string based on this Range<DateTime> object and the given string format. + + + + + Gets all possible items in the range based on the specified intervals. + + + + + Gets all possible items in the range based on the specified intervals. + + + + + Gets all possible items in the range based on the specified intervals. + + + + + Merges adjecant items in this list if their gap is within the specified tolerance. + The result will be another list of ranges with potentially fewer (but larger) ranges. + Consider sorting the items before calling this method. + + + + + Determines if there is any overlap between any two ranges in this list of ranges. + + + + + Gets all parent types hierarchy for this type. + + + + + Determines whether this type inherits from a specified base type, either directly or indirectly. + + + + + Retuns the name of this type in the same way that is used in C# programming. + + + + + Gets the value of this property on the specified object. + + + + + Set the value of this property on the specified object. + + + + + Adds the specified types pair to this type dictionary. + + + + + Creates the instance of this type. + + + + + Determines whether it has a specified attribute applied to it. + + + + + Creates the instance of this type casted to the specified type. + + + + + Determines if this type is a nullable of something. + + + + + Determines whether this property info is the specified property (in lambda expression). + + + + + Determines whether this type is static. + + + + + Gets all types in this assembly that are directly inherited from a specified base type. + + + + + Gets the full programming name of this type. Unlike the standard FullName property, it handles Generic types properly. + + + + + Gets the full programming name of this type. Unlike the standard FullName property, it handles Generic types properly. + + + + + Determines if this type is a generic class of the specified type. + + + + + Gets the specified property. + + + + + Gets the specified property. + + + + + Gets the specified property. + + + + + Gets the property name for a specified expression. + + + + + Gets the property name for a specified expression. + + + + + Gets the root entity type of this type. + If this type inherits directly from Entity<T> then it will be returned, otherwise its parent... + + + + + Gets all types in the current appDomain which implement this interface. + + + + + Creates a new thread and copies the current Culture and UI Culture. + + + + + Creates a new thread and copies the current Culture and UI Culture. + + + + + Gets the default value for this type. It's equivalent to default(T). + + + + + If it specifies DisplayNameAttribute the value from that will be returned. + Otherwise it returns natural English literal text for the name of this member. + For example it coverts "ThisIsSomething" to "This is something". + + + + + Determine whether this property is static. + + + + + Awaits this task. Use this method to skip the Visual Studio warning on calling async methods in sync callers. + + + + + It works similar to calling .Result property, but it forces a context switch to prevent deadlocks in UI and ASP.NET context. + + + + + Invokes this static method. + + + + + If this type implements IEnumerable«T» it returns typeof(T). + + + + + Determines whether this string can be converted to the specified type. + + + + + Tries to parse this text to the specified type. + Returns null if parsing is not possible. + + + + + It converts this text to the specified data type. + It supports all primitive types, Enums, Guid, XElement, XDocument, Color, ... + + + + + Converts the value of this string object into the specified target type. + It supports all primitive types, Enums, Guid, XElement, XDocument, Color, ... + + + + + Removes the specified text from the start of this string instance. + + + + + Trims the end of this instance of string with the specified number of characters. + + + + + If this string object is null, it will return null. Otherwise it will trim the text and return it. + + + + + If this string object is null, it will return empty string. Otherwise it will trim the text and return it. + + + + + Returns a copy of this text converted to lower case. If it is null it will return empty string. + + + + + Returns a copy of this text converted to upper case. If it is null it will return empty string. + + + + + Determines whether this instance of string is null or empty. + + + + + Determines whether this instance of string is not null or empty. + + + + + Will replace all line breaks with a BR tag and return the result as a raw html. + + + + + Will join all items with a BR tag and return the result as a raw html. + + + + + Gets the same string if it is not null or empty. Otherwise it returns the specified default value. + + + + + Gets the same string if it is not null or empty. + Otherwise it invokes the specified default value provider and returns the result. + + + + + Gets the same string unless it is the same as the specified text. If they are the same, empty string will be returned. + + + + + Summarizes the specified source. + + + + + Summarizes the specified text. + + + + + Trims some unnecessary text from the end of this string, if it exists. + + + + + Trims some unnecessary text from the end of this string, if it exists. + + By default it's TRUE. + + + + Returns the last few characters of the string with a length + specified by the given parameter. If the string's length is less than the + given length the complete string is returned. If length is zero or + less an empty string is returned + + Number of characters to return + + + + Returns the first few characters of the string with a length + specified by the given parameter. If the string's length is less than the + given length the complete string is returned. If length is zero or + less an empty string is returned + + Number of characters to return + + + + Gets whether this string item ends with any of the specified items. + + + + + Removes all Html tags from this html string. + + + + + Gets all indices of a specified string inside this text. + + + + + Returns this text with the specified prefix if this has a value. If this text is empty or null, it will return empty string. + + + + + Returns this text with the specified suffix if this has a value. If this text is empty or null, it will return empty string. + + + + + Wraps this text between the left and right wrappers, only if this has a value. + + + + + Repeats this text by the number of times specified. + + + + + Repeats this text by the number of times specified, seperated with the specified seperator. + + + + + Determines if this string value contains a specified substring. + + + + + Removes the specified substrings from this string object. + + + + + Removes the specified substrings from this string object. + + + + + Replaces all occurances of a specified phrase to a substitude, even if the original phrase gets produced again as the result of substitution. Note: It's an expensive call. + + + + + Gets this same string when a specified condition is True, otherwise it returns empty string. + + + + + Gets this same string when a specified condition is False, otherwise it returns empty string. + + + + + Gets the lines of this string. + + + + + Indicates whether this character is categorized as an uppercase letter. + + + + + Indicates whether this character is categorized as a lowercase letter. + + + + + Indicates whether this character is categorized as a letter. + + + + + Indicates whether this character is categorized as digit. + + + + + Indicates whether this character is categorized as White Space (space, tab, new line, etc). + + + + + Indicates whether this character is categorized as a letter or digit. + + + + + Converts the value of this character to its uppercase equivalent. + + + + + Converts the value of this character to its lowercase equivalent. + + + + + If this expression is null, returns an empty string. Otherwise, it returns the ToString() of this instance. + + + + + Determines whether this string object does not contain the specified phrase. + + + + + Determines whether this string object does not contain any of the specified phrases. + + + + + Determines whether this string object does not contain any of the specified phrases. + + + + + Returns natural English literal text for a specified pascal case string value. + For example it coverts "ThisIsSomething" to "This is something". + + + + + Returns the all-lower-case version of this list. + + + + + Returns the all-upper-case version of this list. + + + + + Gets the UTF8-with-signature bytes of this text. + + + + + Converts this array of bytes to a Base64 string. + + + + + Determines whether this text contains any of the specified keywords. + If the keywords list contains a null or empty string, it throws an exception. If you wish to ignore those, use .Trim() on your keywords list. + + + + + Splits this list of string items by a specified separator into a number of smaller lists of string. + + + + + Converts this path into a file object. + + + + + It will search in all environment PATH directories, as well as the current directory, to find this file. + For example for 'git.exe' it will return `C:\Program Files\Git\bin\git.exe`. + + + + + Converts this path into a Uri object. + + + + + Converts this path into a directory object. + + + + + Gets the Xml Encoded version of this text. + + + + + Gets the Xml Decoded version of this text. + + + + + Creates a hash of a specified clear text with a mix of MD5 and SHA1. + + + + + Creates MD5 hash of this text + Specifies whether a hex-compatible string is expected. + + + + + Creates MD5 hash of this text + + + + + Creates SHA1 hash of this text + + + + + Escapes all invalid characters of this string to it's usable as a valid json constant. + + + + + Getsa SHA1 hash of this text where all characters are alpha numeric. + + + + + Attempts to Parse this String as the given Enum type. + + + + + If it's null, it return empty string. Otherwise it returns this. + + + + + Returns the only matched string in the given text using this Regex pattern. + Returns null if more than one match found. + + + + + Returns true if this collection has more than one item. + + + + + Returns a string value that can be saved in xml. + + + + + Returns a string value without any xml-escaped characters. + + + + + Array of unsafe characters that need to be replaced with their character code literals in a JavaScript string. + + + + + Returns valid JavaScript string content with reserved characters replaced by encoded literals. + + + + + Returns valid PascalCase JavaScript or C# string content. + + + + + Returns valid camelCase javaScript or C# string content. + + + + + Converts [hello world] to [Hello World]. + + + + + Trims all text before the specified search phrase. + + + + + Returns this string. But if it's String.Empty, it returns NULL. + + + + + Capitalises the first letter and lower-cases the rest. + + + + + It will replace all occurances of a specified WHOLE WORD and skip occurances of the word with characters or digits attached to it. + + + + + Returns if a specified WHOLE WORD is found in this text. It skips occurances of the word with characters or digits attached to it. + + + + + Ensure that this string object starts with a specified other one. + If it does not, then it prepends that and return the combined text. + + + + + Ensure that this string object ends with a specified other one. + If it does not, then it appends that and return the combined text. + + + + + Converts this string to an array of bytes with the given encoding. + + + + + Wraps the content of this string builder with the provided text blocks. + + + + + Wraps the content of this string builder with the provided lines of text. + A line-break will be added to the left element, and another line break will be added before the right element. + + + + + It's recommended to use Task.Factory.RunSync() instead. + If you can't, at then call this while making it explicit that you know what you're doing. + + + + + If the task is not completed already it throws an exception warning you to await the task. + If the task wraps an exception, the wrapped exception will be thrown. + Otherwise the result will be returned. + Use this instead of calling the Result property when you know that the result is ready to avoid deadlocks. + + + + + Runs a specified task in a new thread to prevent deadlock (context switch race). + + + + + Waits for a task to complete, and then if it contains an exception, it will be thrown. + + + + + Runs a specified task in a new thread to prevent deadlock (context switch race). + + + + + Casts the result type of the input task as if it were covariant. + + The original result type of the task + The covariant type to return + The target task to cast + + + + Casts it into a Task of IEnumerable, so the Linq methods can be invoked on it. + + + + + Casts it into a Task of IEnumerable, so the Linq methods can be invoked on it. + + + + + Casts it into a Task of IEnumerable, so the Linq methods can be invoked on it. + + + + + Casts it into a Task of IEnumerable, so the Linq methods can be invoked on it. + + + + + A shorter more readable alternative to ContinueWith(). + + + + + A shorter more readable alternative to nested ContinueWith() methods. + + + + + A shorter more readable alternative to nested ContinueWith() methods. + + + + + Awaits this task. If the result was an exception, + it will return the default value of TResult rather than throwing the exception. + + + + + Gets the approximate number of the total years equivalent to this timespan. + This is not accurate due to unknown leap years in the actual period to which this TimeSpan relates. + + + + + Converts this time to the date time on date of 1900-01-01. + + + + + Converts this time to the date time on date of 1900-01-01. + + + + + Gets the natural text for this timespan. For example "2 days, 4 hours and 3 minutes". + + + + + Gets the natural text for this timespan. For example "2 days, 4 hours and 3 minutes". + + + + + Gets an Element with the specified path. For example "Tree/Branch1/Branch2". + + + + + Gets a node with the specified path. For example "Tree/Branch1/Branch2". + + + + + Gets the value of an attribute or inner text of an element with the specified path. For example "Tree/Branch1/Branch2". + + + + + Adds this node to a specified container and returns it back to be used as fluent API. + + + + + Removes all namespaces from this document. + + + + + Provides extension methods for transaction classes. + + + + + Creates a new transaction scope with this isolation level. + + + + + Creates a new transaction scope with this isolation level. + public static TransactionScope CreateScope(this IsolationLevel isolationLevel, TransactionScopeOption scopeOption) + + + + Represents a reader that provides fast, non-cached, forward-only access to CSV data. + + + + + Defines the default buffer size. + + + + + Defines the default delimiter character separating each field. + + + + + Defines the default quote character wrapping every field. + + + + + Defines the default escape character letting insert quotation characters inside a quoted field. + + + + + Defines the default comment character indicating that a line is commented out. + + + + + Contains the field header comparer. + + + + + Contains the pointing to the CSV file. + + + + + Contains the buffer size. + + + + + Contains the comment character indicating that a line is commented out. + + + + + Contains the escape character letting insert quotation characters inside a quoted field. + + + + + Contains the delimiter character separating each field. + + + + + Contains the quotation character wrapping every field. + + + + + Determines which values should be trimmed. + + + + + Indicates if field names are located on the first non commented line. + + + + + Indicates if the class is initialized. + + + + + Contains the field headers. + + + + + Contains the dictionary of field indexes by header. The key is the field name and the value is its index. + + + + + Contains the current record index in the CSV file. + A value of means that the reader has not been initialized yet. + Otherwise, a negative value means that no record has been read yet. + + + + + Contains the starting position of the next unread field. + + + + + Contains the index of the next unread field. + + + + + Contains the array of the field values for the current record. + A null value indicates that the field have not been parsed. + + + + + Contains the maximum number of fields to retrieve for each record. + + + + + Contains the read buffer. + + + + + Contains the current read buffer length. + + + + + Indicates if the end of the reader has been reached. + + + + + Indicates if the last read operation reached an EOL character. + + + + + Indicates if the first record is in cache. + This can happen when initializing a reader with no headers + because one record must be read to get the field count automatically + + + + + Indicates if one or more field are missing for the current record. + Resets after each successful record read. + + + + + Indicates if a parse error occured for the current record. + Resets after each successful record read. + + + + + Initializes a new instance of the CsvReader class. + + A pointing to the CSV file. + if field names are located on the first non commented line, otherwise, . + + is a . + + + Cannot read from . + + + + + Initializes a new instance of the CsvReader class. + + A pointing to the CSV file. + if field names are located on the first non commented line, otherwise, . + The buffer size in bytes. + + is a . + + + Cannot read from . + + + + + Initializes a new instance of the CsvReader class. + + A pointing to the CSV file. + if field names are located on the first non commented line, otherwise, . + The delimiter character separating each field (default is ','). + + is a . + + + Cannot read from . + + + + + Initializes a new instance of the CsvReader class. + + A pointing to the CSV file. + if field names are located on the first non commented line, otherwise, . + The delimiter character separating each field (default is ','). + The buffer size in bytes. + + is a . + + + Cannot read from . + + + + + Initializes a new instance of the CsvReader class. + + A pointing to the CSV file. + if field names are located on the first non commented line, otherwise, . + The delimiter character separating each field (default is ','). + The quotation character wrapping every field (default is '''). + + The escape character letting insert quotation characters inside a quoted field (default is '\'). + If no escape character, set to '\0' to gain some performance. + + The comment character indicating that a line is commented out (default is '#'). + Determines which values should be trimmed. + + is a . + + + Cannot read from . + + + + + Initializes a new instance of the CsvReader class. + + A pointing to the CSV file. + if field names are located on the first non commented line, otherwise, . + The delimiter character separating each field (default is ','). + The quotation character wrapping every field (default is '''). + + The escape character letting insert quotation characters inside a quoted field (default is '\'). + If no escape character, set to '\0' to gain some performance. + + The comment character indicating that a line is commented out (default is '#'). + Determines which values should be trimmed. + The buffer size in bytes. + + is a . + + + must be 1 or more. + + + + + Occurs when there is an error while parsing the CSV stream. + + + + + Raises the event. + + The that contains the event data. + + + + Gets the comment character indicating that a line is commented out. + + The comment character indicating that a line is commented out. + + + + Gets the escape character letting insert quotation characters inside a quoted field. + + The escape character letting insert quotation characters inside a quoted field. + + + + Gets the delimiter character separating each field. + + The delimiter character separating each field. + + + + Gets the quotation character wrapping every field. + + The quotation character wrapping every field. + + + + Indicates if field names are located on the first non commented line. + + if field names are located on the first non commented line, otherwise, . + + + + Indicates if spaces at the start and end of a field are trimmed. + + if spaces at the start and end of a field are trimmed, otherwise, . + + + + Gets the buffer size. + + + + + Gets or sets the default action to take when a parsing error has occured. + + The default action to take when a parsing error has occured. + + + + Gets or sets the action to take when a field is missing. + + The action to take when a field is missing. + + + + Gets or sets a value indicating if the reader supports multiline fields. + + A value indicating if the reader supports multiline field. + + + + Gets or sets a value indicating if the reader will skip empty lines. + + A value indicating if the reader will skip empty lines. + + + + Gets or sets the default header name when it is an empty string or only whitespaces. + The header index will be appended to the specified name. + + The default header name when it is an empty string or only whitespaces. + + + + Gets the maximum number of fields to retrieve for each record. + + The maximum number of fields to retrieve for each record. + + The instance has been disposed of. + + + + + Gets a value that indicates whether the current stream position is at the end of the stream. + + if the current stream position is at the end of the stream; otherwise . + + + + Gets the field headers. + + The field headers or an empty array if headers are not supported. + + The instance has been disposed of. + + + + + Gets the current record index in the CSV file. + + The current record index in the CSV file. + + + + Indicates if one or more field are missing for the current record. + Resets after each successful record read. + + + + + Indicates if a parse error occured for the current record. + Resets after each successful record read. + + + + + Gets the field with the specified name and record position. must be . + + + The field with the specified name and record position. + + + is or an empty string. + + + The CSV does not have headers ( property is ). + + + not found. + + + Record index must be > 0. + + + Cannot move to a previous record in forward-only mode. + + + Cannot read record at . + + + The CSV appears to be corrupt at the current position. + + + The instance has been disposed of. + + + + + Gets the field at the specified index and record position. + + + The field at the specified index and record position. + A is returned if the field cannot be found for the record. + + + must be included in [0, [. + + + Record index must be > 0. + + + Cannot move to a previous record in forward-only mode. + + + Cannot read record at . + + + The CSV appears to be corrupt at the current position. + + + The instance has been disposed of. + + + + + Gets the field with the specified name. must be . + + + The field with the specified name. + + + is or an empty string. + + + The CSV does not have headers ( property is ). + + + not found. + + + The CSV appears to be corrupt at the current position. + + + The instance has been disposed of. + + + + + Gets the field at the specified index. + + The field at the specified index. + + must be included in [0, [. + + + No record read yet. Call ReadLine() first. + + + The CSV appears to be corrupt at the current position. + + + The instance has been disposed of. + + + + + Ensures that the reader is initialized. + + + + + Gets the field index for the provided header. + + The header to look for. + The field index for the provided header. -1 if not found. + + The instance has been disposed of. + + + + + Copies the field array of the current record to a one-dimensional array, starting at the beginning of the target array. + + The one-dimensional array that is the destination of the fields of the current record. + + + + Copies the field array of the current record to a one-dimensional array, starting at the beginning of the target array. + + The one-dimensional that is the destination of the fields of the current record. + The zero-based index in at which copying begins. + + is . + + + is les than zero or is equal to or greater than the length . + + + No current record. + + + The number of fields in the record is greater than the available space from to the end of . + + + + + Gets the current raw CSV data. + + Used for exception handling purpose. + The current raw CSV data. + + + + Indicates whether the specified Unicode character is categorized as white space. + + + + + Moves to the specified record index. + + The record index. + true if the operation was successful; otherwise, false. + + The instance has been disposed of. + + + + + Parses a new line delimiter. + + The starting position of the parsing. Will contain the resulting end position. + if a new line delimiter was found; otherwise, . + + The instance has been disposed of. + + + + + Determines whether the character at the specified position is a new line delimiter. + + The position of the character to verify. + + if the character at the specified position is a new line delimiter; otherwise, . + + + + + Fills the buffer with data from the reader. + + if data was successfully read; otherwise, . + + The instance has been disposed of. + + + + + Reads the field at the specified index. + Any unread fields with an inferior index will also be read as part of the required parsing. + + The field index. + Indicates if the reader is currently initializing. + Indicates if the value(s) are discarded. + + The field at the specified index. + A indicates that an error occured or that the last field has been reached during initialization. + + + is out of range. + + + There is no current record. + + + The CSV data appears to be missing a field. + + + The CSV data appears to be malformed. + + + The instance has been disposed of. + + + + + Reads the next record. + + if a record has been successfully reads; otherwise, . + + The instance has been disposed of. + + + + + Reads the next record. + + + Indicates if the reader will proceed to the next record after having read headers. + if it stops after having read headers; otherwise, . + + + Indicates if the reader will skip directly to the next line without parsing the current one. + To be used when an error occurs. + + if a record has been successfully reads; otherwise, . + + The instance has been disposed of. + + + + + Skips empty and commented lines. + If the end of the buffer is reached, its content be discarded and filled again from the reader. + + + The position in the buffer where to start parsing. + Will contains the resulting position after the operation. + + if the end of the reader has not been reached; otherwise, . + + The instance has been disposed of. + + + + + Worker method. + Skips empty and commented lines. + + + The position in the buffer where to start parsing. + Will contains the resulting position after the operation. + + + The instance has been disposed of. + + + + + Skips whitespace characters. + + The starting position of the parsing. Will contain the resulting end position. + if the end of the reader has not been reached; otherwise, . + + The instance has been disposed of. + + + + + Skips ahead to the next NewLine character. + If the end of the buffer is reached, its content be discarded and filled again from the reader. + + + The position in the buffer where to start parsing. + Will contains the resulting position after the operation. + + if the end of the reader has not been reached; otherwise, . + + The instance has been disposed of. + + + + + Handles a parsing error. + + The parsing error that occured. + The current position in the buffer. + + is . + + + + + Handles a missing field error. + + The partially parsed value, if available. + The missing field index. + The current position in the raw data. + + The resulting value according to . + If the action is set to , + then the parse error will be handled according to . + + + + + Validates the state of the data reader. + + The validations to accomplish. + + No current record. + + + This operation is invalid when the reader is closed. + + + + + Copy the value of the specified field to an array. + + The index of the field. + The offset in the field value. + The destination array where the field value will be copied. + The destination array offset. + The number of characters to copy from the field value. + + + + + Returns an that can iterate through CSV records. + + An that can iterate through CSV records. + + The instance has been disposed of. + + + + + Returns an that can iterate through CSV records. + + An that can iterate through CSV records. + + The instance has been disposed of. + + + + + Returns an that can iterate through CSV records. + + An that can iterate through CSV records. + + The instance has been disposed of. + + + + + Contains the stack when the object was allocated. + + + + + Contains the disposed status flag. + + + + + Contains the locking object for multi-threading purpose. + + + + + Occurs when the instance is disposed of. + + + + + Gets a value indicating whether the instance has been disposed of. + + + if the instance has been disposed of; otherwise, . + + + + + Raises the event. + + A that contains the event data. + + + + Checks if the instance has been disposed of, and if it has, throws an ; otherwise, does nothing. + + + The instance has been disposed of. + + + Derived classes should call this method at the start of all methods and properties that should not be accessed after a call to . + + + + + Releases all resources used by the instance. + + + Calls with the disposing parameter set to to free unmanaged and managed resources. + + + + + Releases the unmanaged resources used by this instance and optionally releases the managed resources. + + + to release both managed and unmanaged resources; to release only unmanaged resources. + + + + + Releases unmanaged resources and performs other cleanup operations before the instance is reclaimed by garbage collection. + + + + + Defines the data reader validations. + + + + + No validation. + + + + + Validate that the data reader is initialized. + + + + + Validate that the data reader is not closed. + + + + + Supports a simple iteration over the records of a . + + + + + Contains the enumerated . + + + + + Contains the current record. + + + + + Contains the current record index. + + + + + Initializes a new instance of the class. + + The to iterate over. + + is a . + + + + + Gets the current record. + + + + + Advances the enumerator to the next record of the CSV. + + if the enumerator was successfully advanced to the next record, if the enumerator has passed the end of the CSV. + + + + Sets the enumerator to its initial position, which is before the first record in the CSV. + + + + + Gets the current record. + + + + + Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + + + + + Specifies the action to take when a parsing error has occured. + + + + + Raises the event. + + + + + Tries to advance to next line. + + + + + Throws an exception. + + + + + Specifies the action to take when a field is missing. + + + + + Treat as a parsing error. + + + + + Replaces by an empty value. + + + + + Replaces by a null value (). + + + + + A strongly-typed resource class, for looking up localized strings, etc. + + + + + Returns the cached ResourceManager instance used by this class. + + + + + Overrides the current thread's CurrentUICulture property for all + resource lookups using this strongly typed resource class. + + + + + Looks up a localized string similar to Buffer size must be 1 or more.. + + + + + Looks up a localized string similar to Cannot move to a previous record in forward-only mode.. + + + + + Looks up a localized string similar to Cannot read record at index '{0}'.. + + + + + Looks up a localized string similar to Enumeration has either not started or has already finished.. + + + + + Looks up a localized string similar to Collection was modified; enumeration operation may not execute.. + + + + + Looks up a localized string similar to '{0}' field header not found.. + + + + + Looks up a localized string similar to Field index must be included in [0, FieldCount[. Specified field index was : '{0}'.. + + + + + Looks up a localized string similar to The CSV appears to be corrupt near record '{0}' field '{1} at position '{2}'. Current raw data : '{3}'.. + + + + + Looks up a localized string similar to '{0}' is not a supported missing field action.. + + + + + Looks up a localized string similar to No current record.. + + + + + Looks up a localized string similar to The CSV does not have headers (CsvReader.HasHeaders property is false).. + + + + + Looks up a localized string similar to The number of fields in the record is greater than the available space from index to the end of the destination array.. + + + + + Looks up a localized string similar to '{0}' is not a valid ParseErrorAction while inside a ParseError event.. + + + + + Looks up a localized string similar to '{0}' is not a supported ParseErrorAction.. + + + + + Looks up a localized string similar to This operation is invalid when the reader is closed.. + + + + + Looks up a localized string similar to Record index must be 0 or more.. + + + + + Represents the exception that is thrown when a CSV file is malformed. + + + + + Contains the message that describes the error. + + + + + Contains the raw data when the error occured. + + + + + Contains the current field index. + + + + + Contains the current record index. + + + + + Contains the current position in the raw data. + + + + + Initializes a new instance of the MalformedCsvException class. + + + + + Initializes a new instance of the MalformedCsvException class. + + The message that describes the error. + + + + Initializes a new instance of the MalformedCsvException class. + + The message that describes the error. + The exception that is the cause of the current exception. + + + + Initializes a new instance of the MalformedCsvException class. + + The raw data when the error occured. + The current position in the raw data. + The current record index. + The current field index. + + + + Initializes a new instance of the MalformedCsvException class. + + The raw data when the error occured. + The current position in the raw data. + The current record index. + The current field index. + The exception that is the cause of the current exception. + + + + Initializes a new instance of the MalformedCsvException class with serialized data. + + The that holds the serialized object data about the exception being thrown. + The that contains contextual information about the source or destination. + + + + Gets the raw data when the error occured. + + The raw data when the error occured. + + + + Gets the current position in the raw data. + + The current position in the raw data. + + + + Gets the current record index. + + The current record index. + + + + Gets the current field index. + + The current record index. + + + + Gets a message that describes the current exception. + + A message that describes the current exception. + + + + When overridden in a derived class, sets the with information about the exception. + + The that holds the serialized object data about the exception being thrown. + The that contains contextual information about the source or destination. + + + + Represents the exception that is thrown when a there is a missing field in a record of the CSV file. + + + MissingFieldException would have been a better name, but there is already a . + + + + + Initializes a new instance of the MissingFieldCsvException class. + + + + + Initializes a new instance of the MissingFieldCsvException class. + + The message that describes the error. + + + + Initializes a new instance of the MissingFieldCsvException class. + + The message that describes the error. + The exception that is the cause of the current exception. + + + + Initializes a new instance of the MissingFieldCsvException class. + + The raw data when the error occured. + The current position in the raw data. + The current record index. + The current field index. + + + + Initializes a new instance of the MissingFieldCsvException class. + + The raw data when the error occured. + The current position in the raw data. + The current record index. + The current field index. + The exception that is the cause of the current exception. + + + + Initializes a new instance of the MissingFieldCsvException class with serialized data. + + The that holds the serialized object data about the exception being thrown. + The that contains contextual information about the source or destination. + + + + Provides data for the event. + + + + + Contains the error that occured. + + + + + Initializes a new instance of the ParseErrorEventArgs class. + + The error that occured. + The default action to take. + + + + Gets the error that occured. + + The error that occured. + + + + Gets or sets the action to take. + + The action to take. + + + + Find views matching a specific content-type. + + The content-type to search for; such as "text/html" + + + + + Find views where the content-type matches a condition + + + + + + Decodes modified UTF-7 according to RFC 3501 5.1.3: Mailbox International Naming Convention + + + + + + + Encodes to modified UTF-7 according to RFC 3501 5.1.3: Mailbox International Naming Convention + + + + + + The character set to parse + The character set to default to if it can't be parsed + An encoding which corresponds to the character set + If is + + + diff --git a/Bin/MSharp.Framework.dll b/Bin/MSharp.Framework.dll new file mode 100644 index 0000000..128ed87 Binary files /dev/null and b/Bin/MSharp.Framework.dll differ diff --git a/Bin/MSharp.Framework.dll.refresh b/Bin/MSharp.Framework.dll.refresh new file mode 100644 index 0000000..b90827b Binary files /dev/null and b/Bin/MSharp.Framework.dll.refresh differ diff --git a/Bin/MSharp.Framework.xml b/Bin/MSharp.Framework.xml new file mode 100644 index 0000000..e2b2cda --- /dev/null +++ b/Bin/MSharp.Framework.xml @@ -0,0 +1,1413 @@ + + + + MSharp.Framework + + + + + Provides a DataProvider for accessing data from the database using ADO.NET based on the OleDb provider. + + + + + Provides a DataProvider for accessing data from the database using ADO.NET based on the ODBC provider. + + + + + Gets the IP address of the current user. + + + + + Defines an admin user who can impersonate other users. + + + + + A unique single-use-only cookie-based token to specify the currently impersonated user session. + + + + + Determines if this user can impersonate the specified other user. + + + + + Provides the business logic for ImpersonationContext class. + + + + + Provides the current user. + + + + + Determines if the current user is impersonated. + + + + + Impersonates the specified user by the current admin user. + + If not specified, the current HTTP request's URL will be used. + + + + Ends the current impersonation session. + + + + + Gets the original user who impersonated the current user. + + + + + Sets the default policy for all IP addresses. + + + + + Sets the policy for specific IP addresses. These will override the global, region and country policies. + + + + + Sets the IP Filter policy. All Disallow policies should be set first, then all Allow policies. + + + + + Sets the IP Filter policy. All Disallow policies should be set first, then all Allow policies. + + + + + If the IP address of the current user is in a blocked list, then it will terminate the request with a response saying: + This website is not available in your region. + + + + + Creates a new Compiler instance. + + + + + Creates a new DynamicExpressionsCompiler instance. + + + + + Creates a new DynamicExpressionsCompiler instance. + + + + + Creates a new RssChannel instance. + + + + + Generates Rss Xml document for the specified items. + + + + + Dispatches an Xml document in the current http response. + + + + + Gets the list of current snapshots on disk. + + + + + Creates a suitable string for urls. + + + + + Gets the Currently requested resource. + + + + + Gets the Currently requested resource. + + + + + Determines if this web resource's Url matches a given path. + + + + + Provides easy access to HTTP cookie data. + + + + + Gets the value of the property sent from the client browser as a cookie. + + + + + Gets the value of a string property sent from the client browser as a cookie. + + + + + Gets the value of the property sent from the client browser as a cookie. + + + + + Gets the value of the property sent from the client browser as a cookie. + + + + + Gets the value of the property sent from the client browser as a cookie. + + + + + Sets a specified value in the response cookie as well as request cookie. + + Specifies whether the cookie should be accessible via Javascript too, or Server (http) only. + + + + Sets a specified value in the response cookie as well as request cookie. + + Specifies whether the cookie should be accessible via Javascript too, or Server (http) only. + + + + Sets a specified list in the response cookie as well as request cookie. + + Specifies whether the cookie should be accessible via Javascript too, or Server (http) only. + + + + Sets a specified list in the response cookie as well as request cookie. + + + + + Gets a specified list in the response cookie as well as request cookie. + + + + + Removes the specified cookie property. + + + + + Removes the specified cookie property. + + + + + Removes the specified cookie property. + + + + + Sets a specified value in the response cookie as well as request cookie. + + Specifies whether the cookie should be accessible via Javascript too, or Server (http) only. + + + + Sets a specified value in the response cookie as well as request cookie. + + Specifies whether the cookie should be accessible via Javascript too, or Server (http) only. + + + + This class provides utilities to capture an image from a web url + + + + + Creates a new WebCapture instance. + + + + + Output format default: PNG + + + + + Gets or sets the MinWidth of this WebCapture. + + + + + Gets or sets the MinHeight of this WebCapture. + + + + + After successful load, wait X milliseconds (default: 0) + + + + + JavaScript execution (default: on) + + + + + Maximum time in millisecond that the process should take to capture the snapshot. + if ths time is passed the system would throw exception. DEFAULT: 20,000 + + + + + Prepares arguments for capturing executable + + + + + Gets the byte array of an image captured from the given url + + + + + Gets the bitmap captured from the given url + To get the data you can call .ToBuffer(ImageFormat.Png). + + + + + Capturs from the given url and stores it in the gievn file path + + + + + Provides services to web request log objects. + + + + + Specifies a factory to instantiate WebRequestLog objects. + + + + + Records this web request log in the provided http context. + + + + + Gets the number of requests made in the same session. + + + + + Gest the last url visited in this session. + + + + + Gets the value of a query string key. + + + + + Gets the first request of every session that has had an activity during the last 10 minutes. + + + + + Creates a new AutoComplete instance. + + + + + Gets or sets the SelectedValueBox of this AutoComplete. + + + + + Gets or sets the AutoPostBack of this AutoComplete. + + + + + Gets or sets the OnSelectedValueChanged of this AutoComplete. + + + + + Gets or sets the OnCollapse of this AutoComplete. + + + + + Gets or sets the RequestDelay of this AutoComplete DEFAULT IS 300. + + + + + Gets or sets the ExpandOnFocus of this AutoComplete. + + + + + Gets or sets the OptimizedMode of this AutoComplete. + + + + + Gets or sets the SourceProvider of this AutoComplete. + + + + + Gets or sets the ClientSide of this AutoComplete. + + + + + Gets or sets the Items of this control. + + + + + Gets or sets the WatermarkText of this AutoComplete. + + + + + Gets or sets the NotFoundText of this AutoComplete. + + + + + Sets the selected item. + + + + + Gets or sets the Text of this AutoComplete. + + + + + Gets or sets the LoadingText of this AutoComplete. + + + + + Gets or sets the InnerTextBox of this AutoComplete. + + + + + Gets or sets the ItemsPanel of this AutoComplete. + + + + + Gets or sets the SelectedValue of this AutoComplete. + + + + + Disables auto complete behaviour and acts like a normal text box + + + + + Raises the event. + + An object that contains the event data. + + + + Sets input focus to a control. + + + + + Sets input focus to a control. + + + + + Gets or sets the PageCount of this AutoComplete. + + + + + Gets the callback result of the given items in autocomplete-feidnly json format. + + items to be serialized + filter that is used to produce these items + + + + Gets or sets the HideDelay of this MultiSelectList. + + + + + Gets or sets the PluralName of this MultiSelectList. + + + + + Gets or sets the InitialSearchText of this MultiSelectList. + + + + + Gets or sets the NotSetText of this MultiSelectList. + + + + + Creates a new MultiSelectList instance. + + + + + A control that displays an image, hover image and responds to mouse clicks on the image. + + + + + Creates a new NumericUpDown instance. + + + + + Gets or sets the PlusLink of this NumericUpDown. + + + + + Gets or sets the MinusLink of this NumericUpDown. + + + + + Gets or sets the PlusImageUrl of this NumericUpDown. + + + + + Gets or sets the MinusImageUrl of this NumericUpDown. + + + + + Gets or sets the Minimum of this NumericUpDown. + + + + + Gets or sets the Maximum of this NumericUpDown. + + + + + Gets or sets the StepSize of this NumericUpDown. + + + + + Called once, when the first ever request is being executed. + It's called after processing Web.Test.Commands. + + + + + Determines whether a notification for the specified error be emailed. + + + + + Retrieves the actual user implementation based on the basic ASP.NET principle info. + + + + + Loads the IUser object from the specified ASP.NET user principal. + + + + + Gets the filters added for search. + + + + + Represents the current datasource item in the list. + + + + + Gets the item on which the current command is executing. + + + + + Raises the event. + + The instance containing the event data. + + + + Gets the name of the Selected Columns cookie. + + + + + Gets the name of the sort expression cookie key. + + + + + Adds a filter to the search conditions. + + + + + Clears all filters from this list. + + + + + Gets or sets the current sort expression of this module. + + + + + Resets the sort expression to the specified value. + + + + + Gets the filter criteria of this list. + + + + + Gets the query options to use with the database query. + + + + + Gets the groups of the currently selected grouping expression. + + + + + Gets the items that fall into a specified group. + + + + + Adds search filter expressions to this list's data source. + + + + + Base Page containing base common functionality, all pages inherit from this. + + + + + Gets the basic raw url of the login page applicable to this master page. + + + + + Creates a new MessageBoxManager instance. + + + + + Applies the Render scripts for this message box on the specified page. + + + + + Shows the specified message object's ToString() to the user. + + + + + Shows the specified message to the user. + + + + + Gently shows the specified message object's ToString() to the user. + + + + + Gently shows the specified message to the user. + + + + + Base Page containing base common functionality, all pages inherit from this. + + + + + Sets startup focus on a specified control. + + + + + Redirects the user to the Login Page. + + + + + Gets the virtual path of a resource file. + + The path of the resource from the root of the website. For example "Content/style.css" + + + + Determines the required scheme (http / https) for this page. + + + + + Initializes the object and calls on the child controls of the to render. + + The that receives the page content. + + + + Occurs just before PostBackEvent is raised. + + + + + Raises the post back event. + + + + + This will redirect the user to the current Request.Url. + + + + + Will return the translation of the specified phrase in the language specified in user's cookie (or default language). + + + + + Will return the translation of the specified html block in the language specified in user's cookie (or default language). + + + + + Gets the URL to a page specified by its resource key (from Site Map). + + + + + Gets the URL to a page specified by its resource key (from Site Map). + + + + + Determines whether the current request is From inside an update panel. + + + + + Closes the current modal window. + + + + + Closes the current modal window. + + + + + Closes the current modal window. + + + + + Closes the current modal window. + + + + + Gets the currently specified return URL. + + + + + http://support.microsoft.com/kb/316431 + This method is trying to solve the problem of downloading files in IE through secure access protocol (https) + + + + + + Determines whether GZip should be enabled on this page's response. + + + + + Registers an external script url on this page. + + Specifies whether the script should be added to the page header. If False, it will be added to the + + + + Represents an .ascx file, also known as a user control, requested from a + server that hosts an ASP.NET Web application. The file must be called from + a Web Forms page or a parser error will occur. + + + + + Creates a new UserControl instance. + + + + + Gets a reference to the instance that contains the server control. + + + + + Will return the translation of the specified phrase in the language specified in user's cookie (or default language). + + + + + Will return the translation of the specified html block in the language specified in user's cookie (or default language). + + + + + Gets a value indicating whether the page request is the result of a call back. + Returns true if the page request is the result of a call back; otherwise, false. + + + + + This should return an anonymous object. Each property of that object will be exposed to the client-side function + via a JSon object. + + The parameters sent by the client call. + + + + Gets the URL to a page specified by its resource key (from Site Map). + + + + + Closes the current modal window. + + + + + Closes the current modal window. + + + + + Closes the current modal window. + + + + + Closes the current modal window. + + + + + Gets the currently specified return URL. + + + + + Creates a new LazyModule instance. + + + + + Enables processing of HTTP Web requests by a custom HttpHandler that implements the interface. + + An object that provides references to the intrinsic server objects (for example, Request, Response, Session, and Server) used to service HTTP requests. + + + + Gets a value indicating whether another request can use the instance. + + true if the instance is reusable; otherwise, false. + + + + Creates a new JavascriptVariable instance. + + + + + Creates a new SortExpressionProperty instance. + + + + + Sets the specified value directly without processing it. + + + + + Sets the specified sort expression. It processes DESC before setting it to create the toggle effect. + + + + + Determines if the application is currently being ran by Sanity. + + + + + Determines whether the application is running under Temp database mode. + + + + + To invoke this, send a request to /?web.test.command=tasks + + + + + Creates a new SecureFileDispatcher instance. + + + + + A property of type Document which represents the requested file property. + + + + + The object on which the document property was requested. + + + + + The security error raised by M# framework. + + + + + Call this in Global.asax for the entities model assembly. + + + + + Provides extensions methods to Standard .NET types. + + + + + Registers an external script url on this page. + + Specifies whether the script should be added to the page header. If False, it will be added to the + + + + It will restart the application. + + + + + Initializes a new Document instance, for the specified posted file. + + + + + Sends this error as a notification email to the address in web.config as Error.Notification.Receiver. + + + + + Sends this error as a notification email to the address in web.config as Error.Notification.Receiver. + + + + + Configures this smtp client with the specified config file path. + + + + + Sets the selected items of this list control to the specified array of objects. + + + + + Sets the selected item of this list control. + + + + + Sets the selected item. + + + + + Returns an object whose ID is given in query string with the key of "id". + + + + + Gets the cookies sent by the client. + + + + + Gets the data with the specified type from QueryString[key]. + If the specified type is an entity, then the ID of that record will be read from query string and then fetched from database. + + + + + Returns a string value specified in the request context. + + + + + Returns a value specified in the request context. + + + + + Gets the record with the specified type. The ID of the record will be read from QueryString[key]. + + + + + Gets the record with the specified type. The ID of the record will be read from QueryString["id"]. + + + + + Gets the record with the specified type. The ID of the record will be read from QueryString[key]. + + + + + Gets a list of objects of which Ids come in query string. + + The key of the query string element containing ids. + The sepeerator of Ids in the query string value. The default will be comma (","). + + + + Gets the selected object on this list control. + + + + + Gets the items of this list control. + + + + + Gets the items of this data list. + + + + + Gets the rows of this data list. + + + + + TODO: Refactor and clean this method. + + + + + Determines whether this grid view row is tagged deleted. + + + + + Finds the search keywords used by this user on Google that led to the current request. + + + + + Gets the actual IP address of the user considering the Proxy and other HTTP elements. + + + + + Determines if the given ip address is in any of the private IP ranges + + + + + Determines whether this request is initiated from the local network, i.e. its IP starts with "192.168.". + + + + + Writes the specified content wrapped in a DIV tag. + + + + + Redirects the client to the specified URL with a 301 status (permanent). + + + + + Redirects the client to the specified URL with a 301 status (permanent). + + + + + Returns a flat list of this item plus all items in its hierarchy. + + + + + Adds the specified list to session state and returns a unique Key for that. + + + + + Adds the specified list to session state and returns a unique Key for that. + + + + + Retrieves a list of objects specified by the session key which is previously generated by Session.AddList() method. + + + + + Converts the pager to query string-based links instead of the default post-back-driven model. + + + + + Runs the parallel select in the current HTTP context. + + + + + Iterator recursively returning each role in the current nodes and all of it's ancestor roles. + + + + + Overloads the SiteMapNode->IsAccessibleToUser method to test if the given User can access a particular page. + + + + + Determines if the specified argument exists in the request (query string or form). + + + + + Determines if a request parameter (route or query string) value does not exists for the specified key, or is empty. + + + + + Determines whether the scheme of the current request is HTTPS. + + + + + Gets the absolute URL for a specified relative url. + + + + + Returns the control on the page that caused the page to post back. + + + + + Restarts the currently running web application. + + + + + Gets the GridViewRow of this command. + + + + + Adds the range of specified entities translated in the specified language. + + + + + Renders this control into a HTML string. + + + + + Hides all controls in a collection + + + + + + Gets all parent controls of this control to the root. + + + + + Determines is this control is the parent or ancestor of another control. + + + + + Adds a specified control after another existing control in this collection. + + + + + Adds a specified html content after another existing control in this collection. + + + + + Adds a specified control before another existing control in this collection. + + + + + Adds a specified html content before another existing control in this collection. + + + + + Gets the first parent of this control which is of the specified type. + + + + + Gets a Javascript expression that yield access to this control. + + + + + Gets a Javascript expression that yield a jQuery access to this control. + + + + + Finds the parent of this control with the specified css class. + It navigates the control tree up until it finds a matching control. + + + + + Gets the Css class of this control. + + + + + This solves the issue with multiple validation summary alert. + + + + + Gets all children of this control. + + + + + Transfers the children of this control to another specified control. + + + + + Transfers this control to a new parent. + + + + + Iterator returns all validators for this control and optional Validation group. + + + + + Iterator returns all validators of type T for this control and optional Validation group. + + + + + Returns the Control being validated by this Validator. + + + + + Removes this Control from it's parent Control on this Page. + + + + + Determines whether this is an Ajax call. + + + + + Dispatches a binary data block back to the client. + + + + + Dispatches a string back to the client as a file. + + + + + Dispatches a file back to the client. + + If set to null, the same file name of the file will be used. + + + + Dispatches a file back to the client. + + + + + If the request accepts encoding of GZIP then it will compress the response. + + + + + Determines if this is a GET http request. + + + + + Determines if this is a POST http request. + + + + + Gets the currently specified return URL. + + + + + Determines whether this is the specified browser and any of the specified major versions. + + + + + Adds Javascript code to safely set focus on the specified control. + + + + + Writes the specified message in the response and then ends the response. + + + + + Injects a file into this http file collection. + + + + + Reads the full content of a posted text file. + + + + + Removes a file from this http file collection with the specified key, if it exists. + + + + + Gets the selected object on this list control or returns null if no object exists for selected item. + + + + + Converts the grid view to a tree view by adding some spacer and a collapse icon + to the left side of a web control that has attribute [IsTreeNodeAnchor='true']. + In case there is not such control the first beginning of the row will be chosen. + + The grid view. + + + + Converts the grid view to a tree view by adding some spacer and a collapse icon + to the left side of a web control that has attribute [IsTreeNodeAnchor='true']. + In case there is not such control the first beginning of the row will be chosen. + + The grid view. + + + + Adds a hierarchy of nodes for a specified hirarchical item. + + + + + Adds a hierarchy of nodes for the specified hirarchical items. + + + + + Gets the data item of this node. + ID of the required object will be read from the Value of this node, and then the object of the specified type will be fetched from the database. + + + + + Finds a node in this treeview with its Value equal to the specified object's id. + + + + + Gets the selected object IDs in this tree view. + + + + + Retreives a list of all the TreeNode objects that are descendants of this calling node, regardless of their degree of separation. + + + + + Retreives a list of all the TreeNode objects that directly or indirectly children of this tree, regardless of their degree of separation. + + + + diff --git a/Bin/Microsoft.Extensions.DependencyInjection.Abstractions.dll b/Bin/Microsoft.Extensions.DependencyInjection.Abstractions.dll new file mode 100644 index 0000000..be10ecc Binary files /dev/null and b/Bin/Microsoft.Extensions.DependencyInjection.Abstractions.dll differ diff --git a/Bin/Microsoft.Extensions.DependencyInjection.Abstractions.dll.refresh b/Bin/Microsoft.Extensions.DependencyInjection.Abstractions.dll.refresh new file mode 100644 index 0000000..95478b7 Binary files /dev/null and b/Bin/Microsoft.Extensions.DependencyInjection.Abstractions.dll.refresh differ diff --git a/Bin/Microsoft.Extensions.DependencyInjection.Abstractions.xml b/Bin/Microsoft.Extensions.DependencyInjection.Abstractions.xml new file mode 100644 index 0000000..05f04ee --- /dev/null +++ b/Bin/Microsoft.Extensions.DependencyInjection.Abstractions.xml @@ -0,0 +1,1075 @@ + + + + Microsoft.Extensions.DependencyInjection.Abstractions + + + + + Extension methods for adding and removing services to an . + + + + + Adds the specified to the . + + The . + The to add. + A reference to the current instance of . + + + + Adds a sequence of to the . + + The . + The s to add. + A reference to the current instance of . + + + + Adds the specified to the if the + service type hasn't already been registered. + + The . + The to add. + + + + Adds the specified to the if the + service type hasn't already been registered. + + The . + The s to add. + + + + Adds the specified as a service + to the if the service type hasn't already been registered. + + The . + The type of the service to register. + + + + Adds the specified as a service + with the implementation + to the if the service type hasn't already been registered. + + The . + The type of the service to register. + The implementation type of the service. + + + + Adds the specified as a service + using the factory specified in + to the if the service type hasn't already been registered. + + The . + The type of the service to register. + The factory that creates the service. + + + + Adds the specified as a service + to the if the service type hasn't already been registered. + + The type of the service to add. + The . + + + + Adds the specified as a service + implementation type specified in + to the if the service type hasn't already been registered. + + The type of the service to add. + The type of the implementation to use. + The . + + + + Adds the specified as a service + using the factory specified in + to the if the service type hasn't already been registered. + + The type of the service to add. + The . + The factory that creates the service. + + + + Adds the specified as a service + to the if the service type hasn't already been registered. + + The . + The type of the service to register. + + + + Adds the specified as a service + with the implementation + to the if the service type hasn't already been registered. + + The . + The type of the service to register. + The implementation type of the service. + + + + Adds the specified as a service + using the factory specified in + to the if the service type hasn't already been registered. + + The . + The type of the service to register. + The factory that creates the service. + + + + Adds the specified as a service + to the if the service type hasn't already been registered. + + The type of the service to add. + The . + + + + Adds the specified as a service + implementation type specified in + to the if the service type hasn't already been registered. + + The type of the service to add. + The type of the implementation to use. + The . + + + + Adds the specified as a service + using the factory specified in + to the if the service type hasn't already been registered. + + The type of the service to add. + The . + The factory that creates the service. + + + + Adds the specified as a service + to the if the service type hasn't already been registered. + + The . + The type of the service to register. + + + + Adds the specified as a service + with the implementation + to the if the service type hasn't already been registered. + + The . + The type of the service to register. + The implementation type of the service. + + + + Adds the specified as a service + using the factory specified in + to the if the service type hasn't already been registered. + + The . + The type of the service to register. + The factory that creates the service. + + + + Adds the specified as a service + to the if the service type hasn't already been registered. + + The type of the service to add. + The . + + + + Adds the specified as a service + implementation type specified in + to the if the service type hasn't already been registered. + + The type of the service to add. + The type of the implementation to use. + The . + + + + Adds the specified as a service + with an instance specified in + to the if the service type hasn't already been registered. + + The type of the service to add. + The . + The instance of the service to add. + + + + Adds the specified as a service + using the factory specified in + to the if the service type hasn't already been registered. + + The type of the service to add. + The . + The factory that creates the service. + + + + Adds a if an existing descriptor with the same + and an implementation that does not already exist + in . + + The . + The . + + Use when registing a service implementation of a + service type that + supports multiple registrations of the same service type. Using + is not idempotent and can add + duplicate + instances if called twice. Using + will prevent registration + of multiple implementation types. + + + + + Adds the specified s if an existing descriptor with the same + and an implementation that does not already exist + in . + + The . + The s. + + Use when registing a service + implementation of a service type that + supports multiple registrations of the same service type. Using + is not idempotent and can add + duplicate + instances if called twice. Using + will prevent registration + of multiple implementation types. + + + + + Removes the first service in with the same service type + as and adds to the collection. + + The . + The to replace with. + + + + + Removes all services of type in . + + The . + + + + + Removes all services of type in . + + The . + The service type to remove. + + + + + Specifies the contract for a collection of service descriptors. + + + + + Provides an extension point for creating a container specific builder and an . + + + + + Creates a container builder from an . + + The collection of services + A container builder that can be used to create an . + + + + Creates an from the container builder. + + The container builder + An + + + + The method ends the scope lifetime. Once Dispose + is called, any scoped services that have been resolved from + will be + disposed. + + + + + The used to resolve dependencies from the scope. + + + + + A factory for creating instances of , which is used to create + services within a scope. + + + + + Create an which + contains an used to resolve dependencies from a + newly created scope. + + + An controlling the + lifetime of the scope. Once this is disposed, any scoped services that have been resolved + from the + will also be disposed. + + + + + Optional contract used by + to resolve services if supported by . + + + + + Gets service of type from the implementing + this interface. + + An object that specifies the type of service object to get. + A service object of type . + Throws an exception if the cannot create the object. + + + + Multiple constructors accepting all given argument types have been found in type '{0}'. There should only be one applicable constructor. + + + + + Multiple constructors accepting all given argument types have been found in type '{0}'. There should only be one applicable constructor. + + + + + Unable to locate implementation '{0}' for service '{1}'. + + + + + Unable to locate implementation '{0}' for service '{1}'. + + + + + Unable to resolve service for type '{0}' while attempting to activate '{1}'. + + + + + Unable to resolve service for type '{0}' while attempting to activate '{1}'. + + + + + A suitable constructor for type '{0}' could not be located. Ensure the type is concrete and services are registered for all parameters of a public constructor. + + + + + A suitable constructor for type '{0}' could not be located. Ensure the type is concrete and services are registered for all parameters of a public constructor. + + + + + No service for type '{0}' has been registered. + + + + + No service for type '{0}' has been registered. + + + + + Implementation type cannot be '{0}' because it is indistinguishable from other services registered for '{1}'. + + + + + Implementation type cannot be '{0}' because it is indistinguishable from other services registered for '{1}'. + + + + + Extension methods for adding services to an . + + + + + Adds a transient service of the type specified in with an + implementation of the type specified in to the + specified . + + The to add the service to. + The type of the service to register. + The implementation type of the service. + A reference to this instance after the operation has completed. + + + + + Adds a transient service of the type specified in with a + factory specified in to the + specified . + + The to add the service to. + The type of the service to register. + The factory that creates the service. + A reference to this instance after the operation has completed. + + + + + Adds a transient service of the type specified in with an + implementation type specified in to the + specified . + + The type of the service to add. + The type of the implementation to use. + The to add the service to. + A reference to this instance after the operation has completed. + + + + + Adds a transient service of the type specified in to the + specified . + + The to add the service to. + The type of the service to register and the implementation to use. + A reference to this instance after the operation has completed. + + + + + Adds a transient service of the type specified in to the + specified . + + The type of the service to add. + The to add the service to. + A reference to this instance after the operation has completed. + + + + + Adds a transient service of the type specified in with a + factory specified in to the + specified . + + The type of the service to add. + The to add the service to. + The factory that creates the service. + A reference to this instance after the operation has completed. + + + + + Adds a transient service of the type specified in with an + implementation type specified in using the + factory specified in to the + specified . + + The type of the service to add. + The type of the implementation to use. + The to add the service to. + The factory that creates the service. + A reference to this instance after the operation has completed. + + + + + Adds a scoped service of the type specified in with an + implementation of the type specified in to the + specified . + + The to add the service to. + The type of the service to register. + The implementation type of the service. + A reference to this instance after the operation has completed. + + + + + Adds a scoped service of the type specified in with a + factory specified in to the + specified . + + The to add the service to. + The type of the service to register. + The factory that creates the service. + A reference to this instance after the operation has completed. + + + + + Adds a scoped service of the type specified in with an + implementation type specified in to the + specified . + + The type of the service to add. + The type of the implementation to use. + The to add the service to. + A reference to this instance after the operation has completed. + + + + + Adds a scoped service of the type specified in to the + specified . + + The to add the service to. + The type of the service to register and the implementation to use. + A reference to this instance after the operation has completed. + + + + + Adds a scoped service of the type specified in to the + specified . + + The type of the service to add. + The to add the service to. + A reference to this instance after the operation has completed. + + + + + Adds a scoped service of the type specified in with a + factory specified in to the + specified . + + The type of the service to add. + The to add the service to. + The factory that creates the service. + A reference to this instance after the operation has completed. + + + + + Adds a scoped service of the type specified in with an + implementation type specified in using the + factory specified in to the + specified . + + The type of the service to add. + The type of the implementation to use. + The to add the service to. + The factory that creates the service. + A reference to this instance after the operation has completed. + + + + + Adds a singleton service of the type specified in with an + implementation of the type specified in to the + specified . + + The to add the service to. + The type of the service to register. + The implementation type of the service. + A reference to this instance after the operation has completed. + + + + + Adds a singleton service of the type specified in with a + factory specified in to the + specified . + + The to add the service to. + The type of the service to register. + The factory that creates the service. + A reference to this instance after the operation has completed. + + + + + Adds a singleton service of the type specified in with an + implementation type specified in to the + specified . + + The type of the service to add. + The type of the implementation to use. + The to add the service to. + A reference to this instance after the operation has completed. + + + + + Adds a singleton service of the type specified in to the + specified . + + The to add the service to. + The type of the service to register and the implementation to use. + A reference to this instance after the operation has completed. + + + + + Adds a singleton service of the type specified in to the + specified . + + The type of the service to add. + The to add the service to. + A reference to this instance after the operation has completed. + + + + + Adds a singleton service of the type specified in with a + factory specified in to the + specified . + + The type of the service to add. + The to add the service to. + The factory that creates the service. + A reference to this instance after the operation has completed. + + + + + Adds a singleton service of the type specified in with an + implementation type specified in using the + factory specified in to the + specified . + + The type of the service to add. + The type of the implementation to use. + The to add the service to. + The factory that creates the service. + A reference to this instance after the operation has completed. + + + + + Adds a singleton service of the type specified in with an + instance specified in to the + specified . + + The to add the service to. + The type of the service to register. + The instance of the service. + A reference to this instance after the operation has completed. + + + + + Adds a singleton service of the type specified in with an + instance specified in to the + specified . + + The to add the service to. + The instance of the service. + A reference to this instance after the operation has completed. + + + + + Describes a service with its service type, implementation, and lifetime. + + + + + Initializes a new instance of with the specified . + + The of the service. + The implementing the service. + The of the service. + + + + Initializes a new instance of with the specified + as a . + + The of the service. + The instance implementing the service. + + + + Initializes a new instance of with the specified . + + The of the service. + A factory used for creating service instances. + The of the service. + + + + + + + + + + + + + + + + + + + Creates an instance of with the specified + , , + and the lifetime. + + The type of the service. + The type of the implementation. + A new instance of . + + + + Creates an instance of with the specified + and + and the lifetime. + + The type of the service. + The type of the implementation. + A new instance of . + + + + Creates an instance of with the specified + , , + , + and the lifetime. + + The type of the service. + The type of the implementation. + A factory to create new instances of the service implementation. + A new instance of . + + + + Creates an instance of with the specified + , , + and the lifetime. + + The type of the service. + A factory to create new instances of the service implementation. + A new instance of . + + + + Creates an instance of with the specified + , , + and the lifetime. + + The type of the service. + A factory to create new instances of the service implementation. + A new instance of . + + + + Creates an instance of with the specified + , , + and the lifetime. + + The type of the service. + The type of the implementation. + A new instance of . + + + + Creates an instance of with the specified + and + and the lifetime. + + The type of the service. + The type of the implementation. + A new instance of . + + + + Creates an instance of with the specified + , , + , + and the lifetime. + + The type of the service. + The type of the implementation. + A factory to create new instances of the service implementation. + A new instance of . + + + + Creates an instance of with the specified + , , + and the lifetime. + + The type of the service. + A factory to create new instances of the service implementation. + A new instance of . + + + + Creates an instance of with the specified + , , + and the lifetime. + + The type of the service. + A factory to create new instances of the service implementation. + A new instance of . + + + + Creates an instance of with the specified + , , + and the lifetime. + + The type of the service. + The type of the implementation. + A new instance of . + + + + Creates an instance of with the specified + and + and the lifetime. + + The type of the service. + The type of the implementation. + A new instance of . + + + + Creates an instance of with the specified + , , + , + and the lifetime. + + The type of the service. + The type of the implementation. + A factory to create new instances of the service implementation. + A new instance of . + + + + Creates an instance of with the specified + , , + and the lifetime. + + The type of the service. + A factory to create new instances of the service implementation. + A new instance of . + + + + Creates an instance of with the specified + , , + and the lifetime. + + The type of the service. + A factory to create new instances of the service implementation. + A new instance of . + + + + Creates an instance of with the specified + , , + and the lifetime. + + The type of the service. + The instance of the implementation. + A new instance of . + + + + Creates an instance of with the specified + , , + and the lifetime. + + The type of the service. + The instance of the implementation. + A new instance of . + + + + Creates an instance of with the specified + , , + and . + + The type of the service. + The type of the implementation. + The lifetime of the service. + A new instance of . + + + + Creates an instance of with the specified + , , + and . + + The type of the service. + A factory to create new instances of the service implementation. + The lifetime of the service. + A new instance of . + + + + Specifies the lifetime of a service in an . + + + + + Specifies that a single instance of the service will be created. + + + + + Specifies that a new instance of the service will be created for each scope. + + + In ASP.NET Core applications a scope is created around each server request. + + + + + Specifies that a new instance of the service will be created every time it is requested. + + + + + Extension methods for getting services from an . + + + + + Get service of type from the . + + The type of service object to get. + The to retrieve the service object from. + A service object of type or null if there is no such service. + + + + Get service of type from the . + + The to retrieve the service object from. + An object that specifies the type of service object to get. + A service object of type . + There is no service of type . + + + + Get service of type from the . + + The type of service object to get. + The to retrieve the service object from. + A service object of type . + There is no service of type . + + + + Get an enumeration of services of type from the . + + The type of service object to get. + The to retrieve the services from. + An enumeration of services of type . + + + + Get an enumeration of services of type from the . + + The to retrieve the services from. + An object that specifies the type of service object to get. + An enumeration of services of type . + + + + Creates a new that can be used to resolve scoped services. + + The to create the scope from. + A that can be used to resolve scoped services. + + + + Helper code for the various activator services. + + + + + Instantiate a type with constructor arguments provided directly and/or from an . + + The service provider used to resolve dependencies + The type to activate + Constructor arguments not provided by the . + An activated object of type instanceType + + + + Create a delegate that will instantiate a type with constructor arguments provided directly + and/or from an . + + The type to activate + + The types of objects, in order, that will be passed to the returned function as its second parameter + + + A factory that will instantiate instanceType using an + and an argument array containing objects matching the types defined in argumentTypes + + + + + Instantiate a type with constructor arguments provided directly and/or from an . + + The type to activate + The service provider used to resolve dependencies + Constructor arguments not provided by the . + An activated object of type T + + + + Retrieve an instance of the given type from the service provider. If one is not found then instantiate it directly. + + The type of the service + The service provider used to resolve dependencies + The resolved service or created instance + + + + Retrieve an instance of the given type from the service provider. If one is not found then instantiate it directly. + + The service provider + The type of the service + The resolved service or created instance + + + + Marks the constructor to be used when activating type using . + + + + + The result of . + + The to get service arguments from. + Additional constructor arguments. + The instantiated type. + + + diff --git a/Bin/Microsoft.Extensions.DependencyInjection.dll b/Bin/Microsoft.Extensions.DependencyInjection.dll new file mode 100644 index 0000000..9ad5397 Binary files /dev/null and b/Bin/Microsoft.Extensions.DependencyInjection.dll differ diff --git a/Bin/Microsoft.Extensions.DependencyInjection.dll.refresh b/Bin/Microsoft.Extensions.DependencyInjection.dll.refresh new file mode 100644 index 0000000..cbb8b5c Binary files /dev/null and b/Bin/Microsoft.Extensions.DependencyInjection.dll.refresh differ diff --git a/Bin/Microsoft.Extensions.DependencyInjection.xml b/Bin/Microsoft.Extensions.DependencyInjection.xml new file mode 100644 index 0000000..5ec45fc --- /dev/null +++ b/Bin/Microsoft.Extensions.DependencyInjection.xml @@ -0,0 +1,244 @@ + + + + Microsoft.Extensions.DependencyInjection + + + + + Default implementation of . + + + + + Initializes a new instance of the class + with default options. + + + + + + Initializes a new instance of the class + with the specified . + + The options to use for this instance. + + + + + + + + + + Unable to activate type '{0}'. The following constructors are ambiguous: + + + + + Unable to activate type '{0}'. The following constructors are ambiguous: + + + + + Unable to resolve service for type '{0}' while attempting to activate '{1}'. + + + + + Unable to resolve service for type '{0}' while attempting to activate '{1}'. + + + + + A circular dependency was detected for the service of type '{0}'. + + + + + A circular dependency was detected for the service of type '{0}'. + + + + + No constructor for type '{0}' can be instantiated using services from the service container and default values. + + + + + No constructor for type '{0}' can be instantiated using services from the service container and default values. + + + + + Open generic service type '{0}' requires registering an open generic implementation type. + + + + + Open generic service type '{0}' requires registering an open generic implementation type. + + + + + Cannot instantiate implementation type '{0}' for service type '{1}'. + + + + + Cannot instantiate implementation type '{0}' for service type '{1}'. + + + + + A suitable constructor for type '{0}' could not be located. Ensure the type is concrete and services are registered for all parameters of a public constructor. + + + + + A suitable constructor for type '{0}' could not be located. Ensure the type is concrete and services are registered for all parameters of a public constructor. + + + + + Cannot consume {2} service '{0}' from {3} '{1}'. + + + + + Cannot consume {2} service '{0}' from {3} '{1}'. + + + + + Cannot resolve '{0}' from root provider because it requires {2} service '{1}'. + + + + + Cannot resolve '{0}' from root provider because it requires {2} service '{1}'. + + + + + Cannot resolve {1} service '{0}' from root provider. + + + + + Cannot resolve {1} service '{0}' from root provider. + + + + + Default implementation of . + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Extension methods for building a from an . + + + + + Creates a containing services from the provided . + + The containing service descriptors. + The . + + + + Creates a containing services from the provided + optionaly enabling scope validation. + + The containing service descriptors. + + true to perform check verifying that scoped services never gets resolved from root provider; otherwise false. + + The . + + + + Creates a containing services from the provided + optionaly enabling scope validation. + + The containing service descriptors. + + Configures various service provider behaviors. + + The . + + + + Summary description for IServiceCallSite + + + + + The default IServiceProvider. + + + + + Gets the service object of the specified type. + + + + + + + + + + Options for configuring various behaviors of the default implementation. + + + + + true to perform check verifying that scoped services never gets resolved from root provider; otherwise false. + + + + + Pretty print a type name. + + The . + true to print a fully qualified name. + true to include generic parameter names. + The pretty printed type name. + + + diff --git a/Bin/Newtonsoft.Json.dll b/Bin/Newtonsoft.Json.dll index a957fda..341d08f 100644 Binary files a/Bin/Newtonsoft.Json.dll and b/Bin/Newtonsoft.Json.dll differ diff --git a/Bin/Newtonsoft.Json.dll.refresh b/Bin/Newtonsoft.Json.dll.refresh new file mode 100644 index 0000000..88a9e56 Binary files /dev/null and b/Bin/Newtonsoft.Json.dll.refresh differ diff --git a/Bin/Newtonsoft.Json.xml b/Bin/Newtonsoft.Json.xml index 4718b16..2c981ab 100644 --- a/Bin/Newtonsoft.Json.xml +++ b/Bin/Newtonsoft.Json.xml @@ -9,349 +9,26 @@ Represents a BSON Oid (object id). - - - Initializes a new instance of the class. - - The Oid value. - Gets or sets the value of the Oid. The value of the Oid. + + + Initializes a new instance of the class. + + The Oid value. + - Represents a reader that provides fast, non-cached, forward-only access to serialized Json data. - - - - - Represents a reader that provides fast, non-cached, forward-only access to serialized Json data. - - - - - Initializes a new instance of the class with the specified . - - - - - Reads the next JSON token from the stream. - - true if the next token was read successfully; false if there are no more tokens to read. - - - - Reads the next JSON token from the stream as a . - - A . This method will return null at the end of an array. - - - - Reads the next JSON token from the stream as a . - - A . This method will return null at the end of an array. - - - - Reads the next JSON token from the stream as a . - - A or a null reference if the next JSON token is null. This method will return null at the end of an array. - - - - Reads the next JSON token from the stream as a . - - A . This method will return null at the end of an array. - - - - Reads the next JSON token from the stream as a . - - A . This method will return null at the end of an array. - - - - Reads the next JSON token from the stream as a . - - A . This method will return null at the end of an array. - - - - Skips the children of the current token. - - - - - Sets the current token. - - The new token. - - - - Sets the current token and value. - - The new token. - The value. - - - - Sets the state based on current token type. - - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - Releases unmanaged and - optionally - managed resources - - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Changes the to Closed. - - - - - Gets the current reader state. - - The current reader state. - - - - Gets or sets a value indicating whether the underlying stream or - should be closed when the reader is closed. - - - true to close the underlying stream or when - the reader is closed; otherwise false. The default is true. - - - - - Gets or sets a value indicating whether multiple pieces of JSON content can - be read from a continuous stream without erroring. - - - true to support reading multiple pieces of JSON content; otherwise false. The default is false. - - - - - Gets the quotation mark character used to enclose the value of a string. - - - - - Get or set how time zones are handling when reading JSON. - - - - - Get or set how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON. - - - - - Get or set how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. - - - - - Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a . - - - - - Gets the type of the current JSON token. - - - - - Gets the text value of the current JSON token. - - - - - Gets The Common Language Runtime (CLR) type for the current JSON token. - - - - - Gets the depth of the current token in the JSON document. - - The depth of the current token in the JSON document. - - - - Gets the path of the current JSON token. - - - - - Gets or sets the culture used when reading JSON. Defaults to . - - - - - Specifies the state of the reader. - - - - - The Read method has not been called. - - - - - The end of the file has been reached successfully. - - - - - Reader is at a property. - - - - - Reader is at the start of an object. - - - - - Reader is in an object. - - - - - Reader is at the start of an array. - - - - - Reader is in an array. - - - - - The Close method has been called. - - - - - Reader has just read a value. - - - - - Reader is at the start of a constructor. - - - - - Reader in a constructor. - - - - - An error occurred that prevents the read operation from continuing. - - - - - The end of the file has been reached successfully. - - - - - Initializes a new instance of the class. - - The stream. - - - - Initializes a new instance of the class. - - The reader. - - - - Initializes a new instance of the class. - - The stream. - if set to true the root object will be read as a JSON array. - The used when reading values from BSON. - - - - Initializes a new instance of the class. - - The reader. - if set to true the root object will be read as a JSON array. - The used when reading values from BSON. - - - - Reads the next JSON token from the stream as a . - - - A or a null reference if the next JSON token is null. This method will return null at the end of an array. - - - - - Reads the next JSON token from the stream as a . - - A . This method will return null at the end of an array. - - - - Reads the next JSON token from the stream as a . - - A . This method will return null at the end of an array. - - - - Reads the next JSON token from the stream as a . - - A . This method will return null at the end of an array. - - - - Reads the next JSON token from the stream as a . - - A . This method will return null at the end of an array. - - - - Reads the next JSON token from the stream as a . - - - A . This method will return null at the end of an array. - - - - - Reads the next JSON token from the stream. - - - true if the next token was read successfully; false if there are no more tokens to read. - - - - - Changes the to Closed. + Represents a reader that provides fast, non-cached, forward-only access to serialized BSON data. - Gets or sets a value indicating whether binary data reading should compatible with incorrect Json.NET 3.5 written binary. + Gets or sets a value indicating whether binary data reading should be compatible with incorrect Json.NET 3.5 written binary. true if binary data reading will be compatible with incorrect Json.NET 3.5 written binary; otherwise, false. @@ -367,466 +44,79 @@ - Gets or sets the used when reading values from BSON. + Gets or sets the used when reading values from BSON. + + The used when reading values from BSON. + + + + Initializes a new instance of the class. + + The containing the BSON data to read. + + + + Initializes a new instance of the class. + + The containing the BSON data to read. + + + + Initializes a new instance of the class. + + The containing the BSON data to read. + if set to true the root object will be read as a JSON array. + The used when reading values from BSON. + + + + Initializes a new instance of the class. + + The containing the BSON data to read. + if set to true the root object will be read as a JSON array. + The used when reading values from BSON. + + + + Reads the next JSON token from the underlying . + + + true if the next token was read successfully; false if there are no more tokens to read. + + + + + Changes the reader's state to . + If is set to true, the underlying is also closed. - The used when reading values from BSON. - Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data. + Represents a writer that provides a fast, non-cached, forward-only way of generating BSON data. - + - Represents a writer that provides a fast, non-cached, forward-only way of generating Json data. - - - - - Creates an instance of the JsonWriter class. - - - - - Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream. - - - - - Closes this stream and the underlying stream. - - - - - Writes the beginning of a Json object. - - - - - Writes the end of a Json object. - - - - - Writes the beginning of a Json array. - - - - - Writes the end of an array. - - - - - Writes the start of a constructor with the given name. - - The name of the constructor. - - - - Writes the end constructor. - - - - - Writes the property name of a name/value pair on a JSON object. - - The name of the property. - - - - Writes the property name of a name/value pair on a JSON object. - - The name of the property. - A flag to indicate whether the text should be escaped when it is written as a JSON property name. - - - - Writes the end of the current Json object or array. - - - - - Writes the current token and its children. - - The to read the token from. - - - - Writes the current token. - - The to read the token from. - A flag indicating whether the current token's children should be written. - - - - Writes the specified end token. - - The end token to write. - - - - Writes indent characters. - - - - - Writes the JSON value delimiter. - - - - - Writes an indent space. - - - - - Writes a null value. - - - - - Writes an undefined value. - - - - - Writes raw JSON without changing the writer's state. - - The raw JSON to write. - - - - Writes raw JSON where a value is expected and updates the writer's state. - - The raw JSON to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - An error will raised if the value cannot be written as a single JSON token. - - The value to write. - - - - Writes out a comment /*...*/ containing the specified text. - - Text to place inside the comment. - - - - Writes out the given white space. - - The string of white space characters. - - - - Sets the state of the JsonWriter, - - The JsonToken being written. - The value being written. - - - - Gets or sets a value indicating whether the underlying stream or - should be closed when the writer is closed. - - - true to close the underlying stream or when - the writer is closed; otherwise false. The default is true. - - - - - Gets the top. - - The top. - - - - Gets the state of the writer. - - - - - Gets the path of the writer. - - - - - Indicates how JSON text output is formatted. - - - - - Get or set how dates are written to JSON text. - - - - - Get or set how time zones are handling when writing JSON text. - - - - - Get or set how strings are escaped when writing JSON text. - - - - - Get or set how special floating point numbers, e.g. , - and , - are written to JSON text. - - - - - Get or set how and values are formatting when writing JSON text. - - - - - Gets or sets the culture used when writing JSON. Defaults to . + Gets or sets the used when writing values to BSON. + When set to no conversion will occur. + The used when writing values to BSON. Initializes a new instance of the class. - The stream. + The to write to. Initializes a new instance of the class. - The writer. + The to write to. - Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream. + Flushes whatever is in the buffer to the underlying and also flushes the underlying stream. @@ -837,7 +127,7 @@ - Writes out a comment /*...*/ containing the specified text. + Writes a comment /*...*/ containing the specified text. Text to place inside the comment. @@ -861,23 +151,25 @@ - Writes the beginning of a Json array. + Writes the beginning of a JSON array. - Writes the beginning of a Json object. + Writes the beginning of a JSON object. - Writes the property name of a name/value pair on a Json object. + Writes the property name of a name/value pair on a JSON object. The name of the property. - Closes this stream and the underlying stream. + Closes this writer. + If is set to true, the underlying is also closed. + If is set to true, the JSON is auto-completed. @@ -995,9 +287,9 @@ - Writes a value. + Writes a [] value. - The value to write. + The [] value to write. @@ -1019,7 +311,7 @@ - Writes a value that represents a BSON object id. + Writes a [] value that represents a BSON object id. The Object ID value to write. @@ -1030,13 +322,6 @@ The regex pattern. The regex options. - - - Gets or sets the used when writing values to BSON. - When set to no conversion will occur. - - The used when writing values to BSON. - Specifies how constructors are used when initializing objects during deserialization by the . @@ -1044,12 +329,12 @@ - First attempt to use the public default constructor, then fall back to single paramatized constructor, then the non-public default constructor. + First attempt to use the public default constructor, then fall back to a single parameterized constructor, then to the non-public default constructor. - Json.NET will use a non-public default constructor before falling back to a paramatized constructor. + Json.NET will use a non-public default constructor before falling back to a parameterized constructor. @@ -1057,56 +342,6 @@ Converts a binary value to and from a base 64 string value. - - - Converts an object to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Gets the of the JSON produced by the JsonConverter. - - The of the JSON produced by the JsonConverter. - - - - Gets a value indicating whether this can read JSON. - - true if this can read JSON; otherwise, false. - - - - Gets a value indicating whether this can write JSON. - - true if this can write JSON; otherwise, false. - Writes the JSON representation of the object. @@ -1168,7 +403,7 @@ - Create a custom object + Creates a custom object. The object type to convert. @@ -1326,7 +561,7 @@ - Converts an Entity Framework EntityKey to and from JSON. + Converts an Entity Framework to and from JSON. @@ -1358,7 +593,7 @@ - Converts an ExpandoObject to and from JSON. + Converts an to and from JSON. @@ -1398,27 +633,9 @@ - Converts a to and from the ISO 8601 date format (e.g. 2008-04-12T12:53Z). + Converts a to and from the ISO 8601 date format (e.g. "2008-04-12T12:53Z"). - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - Gets or sets the date time styles used when converting a date to and from JSON. @@ -1437,9 +654,27 @@ The culture used when converting a date to and from JSON. + + + Writes the JSON representation of the object. + + The to write to. + The value. + The calling serializer. + + + + Reads the JSON representation of the object. + + The to read from. + Type of the object. + The existing value of object being read. + The calling serializer. + The object value. + - Converts a to and from a JavaScript date constructor (e.g. new Date(52231943)). + Converts a to and from a JavaScript Date constructor (e.g. new Date(52231943)). @@ -1529,11 +764,75 @@ Converts an to and from its name string value. + + + Gets or sets a value indicating whether the written enum text should be camel case. + The default value is false. + + true if the written enum text will be camel case; otherwise, false. + + + + Gets or sets the naming strategy used to resolve how enum text is written. + + The naming strategy used to resolve how enum text is written. + + + + Gets or sets a value indicating whether integer values are allowed when serializing and deserializing. + The default value is true. + + true if integers are allowed when serializing and deserializing; otherwise, false. + Initializes a new instance of the class. + + + Initializes a new instance of the class. + + true if the written enum text will be camel case; otherwise, false. + + + + Initializes a new instance of the class. + + The naming strategy used to resolve how enum text is written. + true if integers are allowed when serializing and deserializing; otherwise, false. + + + + Initializes a new instance of the class. + + The of the used to write enum text. + + + + Initializes a new instance of the class. + + The of the used to write enum text. + + The parameter list to use when constructing the described by . + If null, the default constructor is used. + When non-null, there must be a constructor defined in the that exactly matches the number, + order, and type of these parameters. + + + + + Initializes a new instance of the class. + + The of the used to write enum text. + + The parameter list to use when constructing the described by . + If null, the default constructor is used. + When non-null, there must be a constructor defined in the that exactly matches the number, + order, and type of these parameters. + + true if integers are allowed when serializing and deserializing; otherwise, false. + Writes the JSON representation of the object. @@ -1561,21 +860,58 @@ true if this instance can convert the specified object type; otherwise, false. - + - Gets or sets a value indicating whether the written enum text should be camel case. + Converts a to and from Unix epoch time - true if the written enum text will be camel case; otherwise, false. - + - Gets or sets a value indicating whether integer values are allowed. + Gets or sets a value indicating whether the dates before Unix epoch + should converted to and from JSON. - true if integers are allowed; otherwise, false. + + true to allow converting dates before Unix epoch to and from JSON; + false to throw an exception when a date being converted to or from JSON + occurred before Unix epoch. The default value is false. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + + true to allow converting dates before Unix epoch to and from JSON; + false to throw an exception when a date being converted to or from JSON + occurred before Unix epoch. The default value is false. + + + + + Writes the JSON representation of the object. + + The to write to. + The value. + The calling serializer. + + + + Reads the JSON representation of the object. + + The to read from. + Type of the object. + The existing property value of the JSON that is being converted. + The calling serializer. + The object value. - Converts a to and from a string (e.g. "1.2.3.4"). + Converts a to and from a string (e.g. "1.2.3.4"). @@ -1610,6 +946,34 @@ Converts XML to and from JSON. + + + Gets or sets the name of the root element to insert when deserializing to XML if the JSON structure has produced multiple root elements. + + The name of the deserialized root element. + + + + Gets or sets a value to indicate whether to write the Json.NET array attribute. + This attribute helps preserve arrays when converting the written XML back to JSON. + + true if the array attribute is written to the XML; otherwise, false. + + + + Gets or sets a value indicating whether to write the root JSON object. + + true if the JSON root object is omitted; otherwise, false. + + + + Gets or sets a value indicating whether to encode special characters when converting JSON to XML. + If true, special characters like ':', '@', '?', '#' and '$' in JSON property names aren't used to specify + XML namespaces, attributes or processing directives. Instead special characters are encoded and written + as part of the XML element name. + + true if special characters are encoded; otherwise, false. + Writes the JSON representation of the object. @@ -1630,11 +994,11 @@ - Checks if the attributeName is a namespace attribute. + Checks if the is a namespace attribute. Attribute name to test. The attribute name prefix if it has one, otherwise an empty string. - True if attribute name is for a namespace attribute, otherwise false. + true if attribute name is for a namespace attribute, otherwise false. @@ -1645,40 +1009,6 @@ true if this instance can convert the specified value type; otherwise, false. - - - Gets or sets the name of the root element to insert when deserializing to XML if the JSON structure has produces multiple root elements. - - The name of the deserialize root element. - - - - Gets or sets a flag to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. - - true if the array attibute is written to the XML; otherwise, false. - - - - Gets or sets a value indicating whether to write the root JSON object. - - true if the JSON root object is omitted; otherwise, false. - - - - Specifies how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. - - - - - Floating point numbers are parsed to . - - - - - Floating point numbers are parsed to . - - Specifies how dates are formatted when writing JSON text. @@ -1686,17 +1016,17 @@ - Dates are written in the ISO 8601 format, e.g. "2012-03-21T05:40Z". + Dates are written in the ISO 8601 format, e.g. "2012-03-21T05:40Z". - Dates are written in the Microsoft JSON format, e.g. "\/Date(1198908717056)\/". + Dates are written in the Microsoft JSON format, e.g. "\/Date(1198908717056)\/". - Specifies how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON text. + Specifies how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON text. @@ -1706,12 +1036,12 @@ - Date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed to . + Date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed to . - Date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed to . + Date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed to . @@ -1740,13 +1070,40 @@ Time zone information should be preserved when converting. + + + The default JSON name table implementation. + + + + + Initializes a new instance of the class. + + + + + Gets a string containing the same characters as the specified range of characters in the given array. + + The character array containing the name to find. + The zero-based index into the array specifying the first character of the name. + The number of characters in the name. + A string containing the same characters as the specified range of characters in the given array. + + + + Adds the specified string into name table. + + The string to add. + This method is not thread-safe. + The resolved string. + Specifies default value handling options for the . - - + + @@ -1758,8 +1115,8 @@ Ignore members where the member value is the same as the member's default value when serializing objects - so that is is not written to JSON. - This option will ignore all default values (e.g. null for objects and nullable typesl; 0 for integers, + so that it is not written to JSON. + This option will ignore all default values (e.g. null for objects and nullable types; 0 for integers, decimals and floating point numbers; and false for booleans). The default value ignored can be changed by placing the on the property. @@ -1772,7 +1129,7 @@ Ignore members where the member value is the same as the member's default value when serializing objects - and sets members to their default value when deserializing. + and set members to their default value when deserializing. @@ -1783,18 +1140,33 @@ - Write special floating point values as strings in JSON, e.g. "NaN", "Infinity", "-Infinity". + Write special floating point values as strings in JSON, e.g. "NaN", "Infinity", "-Infinity". - Write special floating point values as symbols in JSON, e.g. NaN, Infinity, -Infinity. + Write special floating point values as symbols in JSON, e.g. NaN, Infinity, -Infinity. Note that this will produce non-valid JSON. - Write special floating point values as the property's default value in JSON, e.g. 0.0 for a property, null for a property. + Write special floating point values as the property's default value in JSON, e.g. 0.0 for a property, null for a of property. + + + + + Specifies how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. + + + + + Floating point numbers are parsed to . + + + + + Floating point numbers are parsed to . @@ -1812,6 +1184,25 @@ Causes child objects to be indented according to the and settings. + + + Provides an interface for using pooled arrays. + + The array type content. + + + + Rent an array from the pool. This array must be returned when it is no longer needed. + + The minimum required length of the array. The returned array may be longer. + The rented array from the pool. This array must be returned when it is no longer needed. + + + + Return an array to the pool. + + The array that is being returned. + Provides an interface to enable a class to return line and position information. @@ -1822,42 +1213,59 @@ Gets a value indicating whether the class can return line information. - true if LineNumber and LinePosition can be provided; otherwise, false. + true if and can be provided; otherwise, false. Gets the current line number. - The current line number or 0 if no line information is available (for example, HasLineInfo returns false). + The current line number or 0 if no line information is available (for example, when returns false). Gets the current line position. - The current line position or 0 if no line information is available (for example, HasLineInfo returns false). + The current line position or 0 if no line information is available (for example, when returns false). Instructs the how to serialize the collection. + + + Gets or sets a value indicating whether null items are allowed in the collection. + + true if null items are allowed in the collection; otherwise, false. + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class with a flag indicating whether the array can contain null items. + + A flag indicating whether the array can contain null items. + + + + Initializes a new instance of the class with the specified container Id. + + The container Id. + + + + Instructs the to use the specified constructor when deserializing that object. + + Instructs the how to serialize the object. - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified container Id. - - The container Id. - Gets or sets the id. @@ -1878,10 +1286,42 @@ - Gets the collection's items converter. + Gets or sets the collection's items converter. The collection's items converter. + + + The parameter list to use when constructing the described by . + If null, the default constructor is used. + When non-null, there must be a constructor defined in the that exactly matches the number, + order, and type of these parameters. + + + + [JsonContainer(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })] + + + + + + Gets or sets the of the . + + The of the . + + + + The parameter list to use when constructing the described by . + If null, the default constructor is used. + When non-null, there must be a constructor defined in the that exactly matches the number, + order, and type of these parameters. + + + + [JsonContainer(NamingStrategyType = typeof(MyNamingStrategy), NamingStrategyParameters = new object[] { 123, "Four" })] + + + Gets or sets a value that indicates whether to preserve object references. @@ -1910,60 +1350,52 @@ The type name handling. - + - Initializes a new instance of the class. + Initializes a new instance of the class. - + - Initializes a new instance of the class with a flag indicating whether the array can contain null items - - A flag indicating whether the array can contain null items. - - - - Initializes a new instance of the class with the specified container Id. + Initializes a new instance of the class with the specified container Id. The container Id. - - - Gets or sets a value indicating whether null items are allowed in the collection. - - true if null items are allowed in the collection; otherwise, false. - - - - Instructs the to use the specified constructor when deserializing that object. - - - Provides methods for converting between common language runtime types and JSON types. + Provides methods for converting between .NET types and JSON types. + + + Gets or sets a function that creates default . + Default settings are automatically used by serialization methods on , + and and on . + To serialize without using any default settings create a with + . + + - Represents JavaScript's boolean value true as a string. This field is read-only. + Represents JavaScript's boolean value true as a string. This field is read-only. - Represents JavaScript's boolean value false as a string. This field is read-only. + Represents JavaScript's boolean value false as a string. This field is read-only. - Represents JavaScript's null as a string. This field is read-only. + Represents JavaScript's null as a string. This field is read-only. - Represents JavaScript's undefined as a string. This field is read-only. + Represents JavaScript's undefined as a string. This field is read-only. @@ -1978,7 +1410,7 @@ - Represents JavaScript's NaN as a string. This field is read-only. + Represents JavaScript's NaN as a string. This field is read-only. @@ -2108,7 +1540,7 @@ Converts the to its JSON string representation. The value to convert. - A JSON string representation of the . + A JSON string representation of the . @@ -2146,6 +1578,15 @@ The string delimiter character. A JSON string representation of the . + + + Converts the to its JSON string representation. + + The value to convert. + The string delimiter character. + The string escape handling. + A JSON string representation of the . + Converts the to its JSON string representation. @@ -2165,7 +1606,7 @@ Serializes the specified object to a JSON string using formatting. The object to serialize. - Indicates how the output is formatted. + Indicates how the output should be formatted. A JSON string representation of the object. @@ -2175,7 +1616,7 @@ Serializes the specified object to a JSON string using a collection of . The object to serialize. - A collection converters used while serializing. + A collection of converters used while serializing. A JSON string representation of the object. @@ -2183,8 +1624,8 @@ Serializes the specified object to a JSON string using formatting and a collection of . The object to serialize. - Indicates how the output is formatted. - A collection converters used while serializing. + Indicates how the output should be formatted. + A collection of converters used while serializing. A JSON string representation of the object. @@ -2193,7 +1634,7 @@ The object to serialize. The used to serialize the object. - If this is null, default serialization settings will be is used. + If this is null, default serialization settings will be used. A JSON string representation of the object. @@ -2204,11 +1645,11 @@ The object to serialize. The used to serialize the object. - If this is null, default serialization settings will be is used. + If this is null, default serialization settings will be used. The type of the value being serialized. - This parameter is used when is Auto to write out the type name if the type of the value does not match. - Specifing the type is optional. + This parameter is used when is to write out the type name if the type of the value does not match. + Specifying the type is optional. A JSON string representation of the object. @@ -2219,9 +1660,9 @@ Serializes the specified object to a JSON string using formatting and . The object to serialize. - Indicates how the output is formatted. + Indicates how the output should be formatted. The used to serialize the object. - If this is null, default serialization settings will be is used. + If this is null, default serialization settings will be used. A JSON string representation of the object. @@ -2231,58 +1672,24 @@ Serializes the specified object to a JSON string using a type, formatting and . The object to serialize. - Indicates how the output is formatted. + Indicates how the output should be formatted. The used to serialize the object. - If this is null, default serialization settings will be is used. + If this is null, default serialization settings will be used. The type of the value being serialized. - This parameter is used when is Auto to write out the type name if the type of the value does not match. - Specifing the type is optional. + This parameter is used when is to write out the type name if the type of the value does not match. + Specifying the type is optional. A JSON string representation of the object. - - - Asynchronously serializes the specified object to a JSON string. - Serialization will happen on a new thread. - - The object to serialize. - - A task that represents the asynchronous serialize operation. The value of the TResult parameter contains a JSON string representation of the object. - - - - - Asynchronously serializes the specified object to a JSON string using formatting. - Serialization will happen on a new thread. - - The object to serialize. - Indicates how the output is formatted. - - A task that represents the asynchronous serialize operation. The value of the TResult parameter contains a JSON string representation of the object. - - - - - Asynchronously serializes the specified object to a JSON string using formatting and a collection of . - Serialization will happen on a new thread. - - The object to serialize. - Indicates how the output is formatted. - The used to serialize the object. - If this is null, default serialization settings will be is used. - - A task that represents the asynchronous serialize operation. The value of the TResult parameter contains a JSON string representation of the object. - - Deserializes the JSON to a .NET object. The JSON to deserialize. - The deserialized object from the Json string. + The deserialized object from the JSON string. @@ -2291,7 +1698,7 @@ The JSON to deserialize. The used to deserialize the object. - If this is null, default serialization settings will be is used. + If this is null, default serialization settings will be used. The deserialized object from the JSON string. @@ -2301,7 +1708,7 @@ The JSON to deserialize. The of object being deserialized. - The deserialized object from the Json string. + The deserialized object from the JSON string. @@ -2309,7 +1716,7 @@ The type of the object to deserialize to. The JSON to deserialize. - The deserialized object from the Json string. + The deserialized object from the JSON string. @@ -2317,7 +1724,7 @@ The anonymous type to deserialize to. This can't be specified - traditionally and must be infered from the anonymous type passed + traditionally and must be inferred from the anonymous type passed as a parameter. The JSON to deserialize. @@ -2330,14 +1737,14 @@ The anonymous type to deserialize to. This can't be specified - traditionally and must be infered from the anonymous type passed + traditionally and must be inferred from the anonymous type passed as a parameter. The JSON to deserialize. The anonymous type object. The used to deserialize the object. - If this is null, default serialization settings will be is used. + If this is null, default serialization settings will be used. The deserialized anonymous type from the JSON string. @@ -2358,7 +1765,7 @@ The object to deserialize. The used to deserialize the object. - If this is null, default serialization settings will be is used. + If this is null, default serialization settings will be used. The deserialized object from the JSON string. @@ -2379,61 +1786,10 @@ The type of the object to deserialize to. The used to deserialize the object. - If this is null, default serialization settings will be is used. + If this is null, default serialization settings will be used. The deserialized object from the JSON string. - - - Asynchronously deserializes the JSON to the specified .NET type. - Deserialization will happen on a new thread. - - The type of the object to deserialize to. - The JSON to deserialize. - - A task that represents the asynchronous deserialize operation. The value of the TResult parameter contains the deserialized object from the JSON string. - - - - - Asynchronously deserializes the JSON to the specified .NET type using . - Deserialization will happen on a new thread. - - The type of the object to deserialize to. - The JSON to deserialize. - - The used to deserialize the object. - If this is null, default serialization settings will be is used. - - - A task that represents the asynchronous deserialize operation. The value of the TResult parameter contains the deserialized object from the JSON string. - - - - - Asynchronously deserializes the JSON to the specified .NET type. - Deserialization will happen on a new thread. - - The JSON to deserialize. - - A task that represents the asynchronous deserialize operation. The value of the TResult parameter contains the deserialized object from the JSON string. - - - - - Asynchronously deserializes the JSON to the specified .NET type using . - Deserialization will happen on a new thread. - - The JSON to deserialize. - The type of the object to deserialize to. - - The used to deserialize the object. - If this is null, default serialization settings will be is used. - - - A task that represents the asynchronous deserialize operation. The value of the TResult parameter contains the deserialized object from the JSON string. - - Populates the object with values from the JSON string. @@ -2449,152 +1805,276 @@ The target object to populate values onto. The used to deserialize the object. - If this is null, default serialization settings will be is used. + If this is null, default serialization settings will be used. - - - Asynchronously populates the object with values from the JSON string using . - - The JSON to populate values from. - The target object to populate values onto. - - The used to deserialize the object. - If this is null, default serialization settings will be is used. - - - A task that represents the asynchronous populate operation. - - - Serializes the XML node to a JSON string. + Serializes the to a JSON string. The node to serialize. - A JSON string of the XmlNode. + A JSON string of the . - Serializes the XML node to a JSON string using formatting. + Serializes the to a JSON string using formatting. The node to serialize. - Indicates how the output is formatted. - A JSON string of the XmlNode. + Indicates how the output should be formatted. + A JSON string of the . - Serializes the XML node to a JSON string using formatting and omits the root object if is true. + Serializes the to a JSON string using formatting and omits the root object if is true. The node to serialize. - Indicates how the output is formatted. + Indicates how the output should be formatted. Omits writing the root object. - A JSON string of the XmlNode. + A JSON string of the . - Deserializes the XmlNode from a JSON string. + Deserializes the from a JSON string. The JSON string. - The deserialized XmlNode + The deserialized . - Deserializes the XmlNode from a JSON string nested in a root elment specified by . + Deserializes the from a JSON string nested in a root element specified by . The JSON string. The name of the root element to append when deserializing. - The deserialized XmlNode + The deserialized . - Deserializes the XmlNode from a JSON string nested in a root elment specified by - and writes a .NET array attribute for collections. + Deserializes the from a JSON string nested in a root element specified by + and writes a Json.NET array attribute for collections. The JSON string. The name of the root element to append when deserializing. - A flag to indicate whether to write the Json.NET array attribute. + A value to indicate whether to write the Json.NET array attribute. This attribute helps preserve arrays when converting the written XML back to JSON. - The deserialized XmlNode + The deserialized . + + + + Deserializes the from a JSON string nested in a root element specified by , + writes a Json.NET array attribute for collections, and encodes special characters. + + The JSON string. + The name of the root element to append when deserializing. + + A value to indicate whether to write the Json.NET array attribute. + This attribute helps preserve arrays when converting the written XML back to JSON. + + + A value to indicate whether to encode special characters when converting JSON to XML. + If true, special characters like ':', '@', '?', '#' and '$' in JSON property names aren't used to specify + XML namespaces, attributes or processing directives. Instead special characters are encoded and written + as part of the XML element name. + + The deserialized . Serializes the to a JSON string. The node to convert to JSON. - A JSON string of the XNode. + A JSON string of the . Serializes the to a JSON string using formatting. The node to convert to JSON. - Indicates how the output is formatted. - A JSON string of the XNode. + Indicates how the output should be formatted. + A JSON string of the . Serializes the to a JSON string using formatting and omits the root object if is true. The node to serialize. - Indicates how the output is formatted. + Indicates how the output should be formatted. Omits writing the root object. - A JSON string of the XNode. + A JSON string of the . Deserializes the from a JSON string. The JSON string. - The deserialized XNode + The deserialized . - Deserializes the from a JSON string nested in a root elment specified by . + Deserializes the from a JSON string nested in a root element specified by . The JSON string. The name of the root element to append when deserializing. - The deserialized XNode + The deserialized . - Deserializes the from a JSON string nested in a root elment specified by - and writes a .NET array attribute for collections. + Deserializes the from a JSON string nested in a root element specified by + and writes a Json.NET array attribute for collections. The JSON string. The name of the root element to append when deserializing. - A flag to indicate whether to write the Json.NET array attribute. + A value to indicate whether to write the Json.NET array attribute. This attribute helps preserve arrays when converting the written XML back to JSON. - The deserialized XNode + The deserialized . - + - Gets or sets a function that creates default . - Default settings are automatically used by serialization methods on , - and and on . - To serialize without using any default settings create a with - . + Deserializes the from a JSON string nested in a root element specified by , + writes a Json.NET array attribute for collections, and encodes special characters. + The JSON string. + The name of the root element to append when deserializing. + + A value to indicate whether to write the Json.NET array attribute. + This attribute helps preserve arrays when converting the written XML back to JSON. + + + A value to indicate whether to encode special characters when converting JSON to XML. + If true, special characters like ':', '@', '?', '#' and '$' in JSON property names aren't used to specify + XML namespaces, attributes or processing directives. Instead special characters are encoded and written + as part of the XML element name. + + The deserialized . + + + + Converts an object to and from JSON. + + + + + Writes the JSON representation of the object. + + The to write to. + The value. + The calling serializer. + + + + Reads the JSON representation of the object. + + The to read from. + Type of the object. + The existing value of object being read. + The calling serializer. + The object value. + + + + Determines whether this instance can convert the specified object type. + + Type of the object. + + true if this instance can convert the specified object type; otherwise, false. + + + + + Gets a value indicating whether this can read JSON. + + true if this can read JSON; otherwise, false. + + + + Gets a value indicating whether this can write JSON. + + true if this can write JSON; otherwise, false. + + + + Converts an object to and from JSON. + + The object type to convert. + + + + Writes the JSON representation of the object. + + The to write to. + The value. + The calling serializer. + + + + Writes the JSON representation of the object. + + The to write to. + The value. + The calling serializer. + + + + Reads the JSON representation of the object. + + The to read from. + Type of the object. + The existing value of object being read. + The calling serializer. + The object value. + + + + Reads the JSON representation of the object. + + The to read from. + Type of the object. + The existing value of object being read. If there is no existing value then null will be used. + The existing value has a value. + The calling serializer. + The object value. + + + + Determines whether this instance can convert the specified object type. + + Type of the object. + + true if this instance can convert the specified object type; otherwise, false. + Instructs the to use the specified when serializing the member or class. + + + Gets the of the . + + The of the . + + + + The parameter list to use when constructing the described by . + If null, the default constructor is used. + + Initializes a new instance of the class. - Type of the converter. + Type of the . - + - Gets the type of the converter. + Initializes a new instance of the class. - The type of the converter. + Type of the . + Parameter list to use when constructing the . Can be null. @@ -2619,7 +2099,7 @@ - The exception thrown when an error occurs during Json serialization or deserialization. + The exception thrown when an error occurs during JSON serialization or deserialization. @@ -2640,7 +2120,7 @@ with a specified error message and a reference to the inner exception that is the cause of this exception. The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. + The exception that is the cause of the current exception, or null if no inner exception is specified. @@ -2648,8 +2128,8 @@ The that holds the serialized object data about the exception being thrown. The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). + The parameter is null. + The class name is null or is zero (0). @@ -2657,11 +2137,6 @@ and write values during serialization. - - - Initializes a new instance of the class. - - Gets or sets a value that indicates whether to write extension data when serializing the object. @@ -2678,16 +2153,61 @@ true to read extension data when deserializing the object; otherwise, false. The default is true. + + + Initializes a new instance of the class. + + Instructs the not to serialize the public field or public read/write property value. + + + Base class for a table of atomized string objects. + + + + + Gets a string containing the same characters as the specified range of characters in the given array. + + The character array containing the name to find. + The zero-based index into the array specifying the first character of the name. + The number of characters in the name. + A string containing the same characters as the specified range of characters in the given array. + Instructs the how to serialize the object. + + + Gets or sets the member serialization. + + The member serialization. + + + + Gets or sets the missing member handling used when deserializing this object. + + The missing member handling. + + + + Gets or sets how the object's properties with null values are handled during serialization and deserialization. + + How the object's properties with null values are handled during serialization and deserialization. + + + + Gets or sets a value that indicates whether the object's properties are required. + + + A value indicating whether the object's properties are required. + + Initializes a new instance of the class. @@ -2705,41 +2225,48 @@ The container Id. - - - Gets or sets the member serialization. - - The member serialization. - - - - Gets or sets a value that indicates whether the object's properties are required. - - - A value indicating whether the object's properties are required. - - Instructs the to always serialize the member with the specified name. - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified name. - - Name of the property. - - Gets or sets the converter used when serializing the property's collection items. + Gets or sets the type used when serializing the property's collection items. - The collection's items converter. + The collection's items type. + + + + The parameter list to use when constructing the described by . + If null, the default constructor is used. + When non-null, there must be a constructor defined in the that exactly matches the number, + order, and type of these parameters. + + + + [JsonProperty(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })] + + + + + + Gets or sets the of the . + + The of the . + + + + The parameter list to use when constructing the described by . + If null, the default constructor is used. + When non-null, there must be a constructor defined in the that exactly matches the number, + order, and type of these parameters. + + + + [JsonProperty(NamingStrategyType = typeof(MyNamingStrategy), NamingStrategyParameters = new object[] { 123, "Four" })] + + @@ -2779,9 +2306,9 @@ - Gets or sets the order of serialization and deserialization of a member. + Gets or sets the order of serialization of a member. - The numeric order of serialization or deserialization. + The numeric order of serialization. @@ -2799,13 +2326,13 @@ - Gets or sets the the reference loop handling used when serializing the property's collection items. + Gets or sets the reference loop handling used when serializing the property's collection items. The collection's items reference loop handling. - Gets or sets the the type name handling used when serializing the property's collection items. + Gets or sets the type name handling used when serializing the property's collection items. The collection's items type name handling. @@ -2815,40 +2342,385 @@ Whether this property's collection items are serialized as a reference. + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class with the specified name. + + Name of the property. + + + + Represents a reader that provides fast, non-cached, forward-only access to serialized JSON data. + + + + + Asynchronously reads the next JSON token from the source. + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous read. The + property returns true if the next token was read successfully; false if there are no more tokens to read. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously skips the children of the current token. + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously reads the next JSON token from the source as a of . + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous read. The + property returns the of . This result will be null at the end of an array. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously reads the next JSON token from the source as a []. + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous read. The + property returns the []. This result will be null at the end of an array. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously reads the next JSON token from the source as a of . + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous read. The + property returns the of . This result will be null at the end of an array. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously reads the next JSON token from the source as a of . + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous read. The + property returns the of . This result will be null at the end of an array. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously reads the next JSON token from the source as a of . + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous read. The + property returns the of . This result will be null at the end of an array. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously reads the next JSON token from the source as a of . + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous read. The + property returns the of . This result will be null at the end of an array. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously reads the next JSON token from the source as a of . + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous read. The + property returns the of . This result will be null at the end of an array. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously reads the next JSON token from the source as a . + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous read. The + property returns the . This result will be null at the end of an array. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Specifies the state of the reader. + + + + + A read method has not been called. + + + + + The end of the file has been reached successfully. + + + + + Reader is at a property. + + + + + Reader is at the start of an object. + + + + + Reader is in an object. + + + + + Reader is at the start of an array. + + + + + Reader is in an array. + + + + + The method has been called. + + + + + Reader has just read a value. + + + + + Reader is at the start of a constructor. + + + + + Reader is in a constructor. + + + + + An error occurred that prevents the read operation from continuing. + + + + + The end of the file has been reached successfully. + + + + + Gets the current reader state. + + The current reader state. + + + + Gets or sets a value indicating whether the source should be closed when this reader is closed. + + + true to close the source when this reader is closed; otherwise false. The default is true. + + + + + Gets or sets a value indicating whether multiple pieces of JSON content can + be read from a continuous stream without erroring. + + + true to support reading multiple pieces of JSON content; otherwise false. + The default is false. + + + + + Gets the quotation mark character used to enclose the value of a string. + + + + + Gets or sets how time zones are handled when reading JSON. + + + + + Gets or sets how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON. + + + + + Gets or sets how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. + + + + + Gets or sets how custom date formatted strings are parsed when reading JSON. + + + + + Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a . + A null value means there is no maximum. + The default value is 64. + + + + + Gets the type of the current JSON token. + + + + + Gets the text value of the current JSON token. + + + + + Gets the .NET type for the current JSON token. + + + + + Gets the depth of the current token in the JSON document. + + The depth of the current token in the JSON document. + + + + Gets the path of the current JSON token. + + + + + Gets or sets the culture used when reading JSON. Defaults to . + + + + + Initializes a new instance of the class. + + + + + Reads the next JSON token from the source. + + true if the next token was read successfully; false if there are no more tokens to read. + + + + Reads the next JSON token from the source as a of . + + A of . This method will return null at the end of an array. + + + + Reads the next JSON token from the source as a . + + A . This method will return null at the end of an array. + + + + Reads the next JSON token from the source as a []. + + A [] or null if the next JSON token is null. This method will return null at the end of an array. + + + + Reads the next JSON token from the source as a of . + + A of . This method will return null at the end of an array. + + + + Reads the next JSON token from the source as a of . + + A of . This method will return null at the end of an array. + + + + Reads the next JSON token from the source as a of . + + A of . This method will return null at the end of an array. + + + + Reads the next JSON token from the source as a of . + + A of . This method will return null at the end of an array. + + + + Reads the next JSON token from the source as a of . + + A of . This method will return null at the end of an array. + + + + Skips the children of the current token. + + + + + Sets the current token. + + The new token. + + + + Sets the current token and value. + + The new token. + The value. + + + + Sets the current token and value. + + The new token. + The value. + A flag indicating whether the position index inside an array should be updated. + + + + Sets the state based on current token type. + + + + + Releases unmanaged and - optionally - managed resources. + + true to release both managed and unmanaged resources; false to release only unmanaged resources. + + + + Changes the reader's state to . + If is set to true, the source is also closed. + + - The exception thrown when an error occurs while reading Json text. + The exception thrown when an error occurs while reading JSON text. - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with a specified error message. - - The error message that explains the reason for the exception. - - - - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. - - - - Initializes a new instance of the class. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). - Gets the line number indicating where the error occurred. @@ -2867,11 +2739,74 @@ The path to the JSON where the error occurred. + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class + with a specified error message. + + The error message that explains the reason for the exception. + + + + Initializes a new instance of the class + with a specified error message and a reference to the inner exception that is the cause of this exception. + + The error message that explains the reason for the exception. + The exception that is the cause of the current exception, or null if no inner exception is specified. + + + + Initializes a new instance of the class. + + The that holds the serialized object data about the exception being thrown. + The that contains contextual information about the source or destination. + The parameter is null. + The class name is null or is zero (0). + + + + Initializes a new instance of the class + with a specified error message, JSON path, line number, line position, and a reference to the inner exception that is the cause of this exception. + + The error message that explains the reason for the exception. + The path to the JSON where the error occurred. + The line number indicating where the error occurred. + The line position indicating where the error occurred. + The exception that is the cause of the current exception, or null if no inner exception is specified. + + + + Instructs the to always serialize the member, and to require that the member has a value. + + - The exception thrown when an error occurs during Json serialization or deserialization. + The exception thrown when an error occurs during JSON serialization or deserialization. + + + Gets the line number indicating where the error occurred. + + The line number indicating where the error occurred. + + + + Gets the line position indicating where the error occurred. + + The line position indicating where the error occurred. + + + + Gets the path to the JSON where the error occurred. + + The path to the JSON where the error occurred. + Initializes a new instance of the class. @@ -2890,7 +2825,7 @@ with a specified error message and a reference to the inner exception that is the cause of this exception. The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. + The exception that is the cause of the current exception, or null if no inner exception is specified. @@ -2898,8 +2833,19 @@ The that holds the serialized object data about the exception being thrown. The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). + The parameter is null. + The class name is null or is zero (0). + + + + Initializes a new instance of the class + with a specified error message, JSON path, line number, line position, and a reference to the inner exception that is the cause of this exception. + + The error message that explains the reason for the exception. + The path to the JSON where the error occurred. + The line number indicating where the error occurred. + The line position indicating where the error occurred. + The exception that is the cause of the current exception, or null if no inner exception is specified. @@ -2907,143 +2853,6 @@ The enables you to control how objects are encoded into JSON. - - - Initializes a new instance of the class. - - - - - Creates a new instance. - The will not use default settings. - - - A new instance. - The will not use default settings. - - - - - Creates a new instance using the specified . - The will not use default settings. - - The settings to be applied to the . - - A new instance using the specified . - The will not use default settings. - - - - - Creates a new instance. - The will use default settings. - - - A new instance. - The will use default settings. - - - - - Creates a new instance using the specified . - The will use default settings. - - The settings to be applied to the . - - A new instance using the specified . - The will use default settings. - - - - - Populates the JSON values onto the target object. - - The that contains the JSON structure to reader values from. - The target object to populate values onto. - - - - Populates the JSON values onto the target object. - - The that contains the JSON structure to reader values from. - The target object to populate values onto. - - - - Deserializes the Json structure contained by the specified . - - The that contains the JSON structure to deserialize. - The being deserialized. - - - - Deserializes the Json structure contained by the specified - into an instance of the specified type. - - The containing the object. - The of object being deserialized. - The instance of being deserialized. - - - - Deserializes the Json structure contained by the specified - into an instance of the specified type. - - The containing the object. - The type of the object to deserialize. - The instance of being deserialized. - - - - Deserializes the Json structure contained by the specified - into an instance of the specified type. - - The containing the object. - The of object being deserialized. - The instance of being deserialized. - - - - Serializes the specified and writes the Json structure - to a Stream using the specified . - - The used to write the Json structure. - The to serialize. - - - - Serializes the specified and writes the Json structure - to a Stream using the specified . - - The used to write the Json structure. - The to serialize. - - The type of the value being serialized. - This parameter is used when is Auto to write out the type name if the type of the value does not match. - Specifing the type is optional. - - - - - Serializes the specified and writes the Json structure - to a Stream using the specified . - - The used to write the Json structure. - The to serialize. - - The type of the value being serialized. - This parameter is used when is Auto to write out the type name if the type of the value does not match. - Specifing the type is optional. - - - - - Serializes the specified and writes the Json structure - to a Stream using the specified . - - The used to write the Json structure. - The to serialize. - Occurs when the errors during serialization and deserialization. @@ -3056,7 +2865,12 @@ - Gets or sets the used by the serializer when resolving type names. + Gets or sets the used by the serializer when resolving type names. + + + + + Gets or sets the used by the serializer when resolving type names. @@ -3065,54 +2879,88 @@ The trace writer. + + + Gets or sets the equality comparer used by the serializer when comparing references. + + The equality comparer. + Gets or sets how type name writing and reading is handled by the serializer. + The default value is . + + should be used with caution when your application deserializes JSON from an external source. + Incoming types should be validated with a custom + when deserializing with a value other than . + Gets or sets how a type name assembly is written and resolved by the serializer. + The default value is . + + The type name assembly format. + + + + Gets or sets how a type name assembly is written and resolved by the serializer. + The default value is . The type name assembly format. Gets or sets how object references are preserved by the serializer. + The default value is . - Get or set how reference loops (e.g. a class referencing itself) is handled. + Gets or sets how reference loops (e.g. a class referencing itself) is handled. + The default value is . - Get or set how missing members (e.g. JSON contains a property that isn't a member on the object) are handled during deserialization. + Gets or sets how missing members (e.g. JSON contains a property that isn't a member on the object) are handled during deserialization. + The default value is . - Get or set how null values are handled during serialization and deserialization. + Gets or sets how null values are handled during serialization and deserialization. + The default value is . - Get or set how null default are handled during serialization and deserialization. + Gets or sets how default values are handled during serialization and deserialization. + The default value is . Gets or sets how objects are created during deserialization. + The default value is . The object creation handling. Gets or sets how constructors are used during deserialization. + The default value is . The constructor handling. + + + Gets or sets how metadata properties are used during deserialization. + The default value is . + + The metadata properties handling. + Gets a collection that will be used during serialization. @@ -3134,130 +2982,311 @@ Indicates how JSON text output is formatted. + The default value is . - Get or set how dates are written to JSON text. + Gets or sets how dates are written to JSON text. + The default value is . - Get or set how time zones are handling during serialization and deserialization. + Gets or sets how time zones are handled during serialization and deserialization. + The default value is . - Get or set how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON. + Gets or sets how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON. + The default value is . - Get or set how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. + Gets or sets how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. + The default value is . - Get or set how special floating point numbers, e.g. , + Gets or sets how special floating point numbers, e.g. , and , are written as JSON text. + The default value is . - Get or set how strings are escaped when writing JSON text. + Gets or sets how strings are escaped when writing JSON text. + The default value is . - Get or set how and values are formatting when writing JSON text. + Gets or sets how and values are formatted when writing JSON text, + and the expected date format when reading JSON text. + The default value is "yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFFK". - Gets or sets the culture used when reading JSON. Defaults to . + Gets or sets the culture used when reading JSON. + The default value is . Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a . + A null value means there is no maximum. + The default value is 64. Gets a value indicating whether there will be a check for additional JSON content after deserializing an object. + The default value is false. true if there will be a check for additional JSON content after deserializing an object; otherwise, false. + + + Initializes a new instance of the class. + + + + + Creates a new instance. + The will not use default settings + from . + + + A new instance. + The will not use default settings + from . + + + + + Creates a new instance using the specified . + The will not use default settings + from . + + The settings to be applied to the . + + A new instance using the specified . + The will not use default settings + from . + + + + + Creates a new instance. + The will use default settings + from . + + + A new instance. + The will use default settings + from . + + + + + Creates a new instance using the specified . + The will use default settings + from as well as the specified . + + The settings to be applied to the . + + A new instance using the specified . + The will use default settings + from as well as the specified . + + + + + Populates the JSON values onto the target object. + + The that contains the JSON structure to read values from. + The target object to populate values onto. + + + + Populates the JSON values onto the target object. + + The that contains the JSON structure to read values from. + The target object to populate values onto. + + + + Deserializes the JSON structure contained by the specified . + + The that contains the JSON structure to deserialize. + The being deserialized. + + + + Deserializes the JSON structure contained by the specified + into an instance of the specified type. + + The containing the object. + The of object being deserialized. + The instance of being deserialized. + + + + Deserializes the JSON structure contained by the specified + into an instance of the specified type. + + The containing the object. + The type of the object to deserialize. + The instance of being deserialized. + + + + Deserializes the JSON structure contained by the specified + into an instance of the specified type. + + The containing the object. + The of object being deserialized. + The instance of being deserialized. + + + + Serializes the specified and writes the JSON structure + using the specified . + + The used to write the JSON structure. + The to serialize. + + + + Serializes the specified and writes the JSON structure + using the specified . + + The used to write the JSON structure. + The to serialize. + + The type of the value being serialized. + This parameter is used when is to write out the type name if the type of the value does not match. + Specifying the type is optional. + + + + + Serializes the specified and writes the JSON structure + using the specified . + + The used to write the JSON structure. + The to serialize. + + The type of the value being serialized. + This parameter is used when is Auto to write out the type name if the type of the value does not match. + Specifying the type is optional. + + + + + Serializes the specified and writes the JSON structure + using the specified . + + The used to write the JSON structure. + The to serialize. + Specifies the settings on a object. - - - Initializes a new instance of the class. - - - Gets or sets how reference loops (e.g. a class referencing itself) is handled. + Gets or sets how reference loops (e.g. a class referencing itself) are handled. + The default value is . Reference loop handling. Gets or sets how missing members (e.g. JSON contains a property that isn't a member on the object) are handled during deserialization. + The default value is . Missing member handling. Gets or sets how objects are created during deserialization. + The default value is . The object creation handling. Gets or sets how null values are handled during serialization and deserialization. + The default value is . Null value handling. - Gets or sets how null default are handled during serialization and deserialization. + Gets or sets how default values are handled during serialization and deserialization. + The default value is . The default value handling. - Gets or sets a collection that will be used during serialization. + Gets or sets a collection that will be used during serialization. The converters. Gets or sets how object references are preserved by the serializer. + The default value is . The preserve references handling. Gets or sets how type name writing and reading is handled by the serializer. + The default value is . + + should be used with caution when your application deserializes JSON from an external source. + Incoming types should be validated with a custom + when deserializing with a value other than . + The type name handling. + + + Gets or sets how metadata properties are used during deserialization. + The default value is . + + The metadata properties handling. + Gets or sets how a type name assembly is written and resolved by the serializer. + The default value is . + + The type name assembly format. + + + + Gets or sets how a type name assembly is written and resolved by the serializer. + The default value is . The type name assembly format. Gets or sets how constructors are used during deserialization. + The default value is . The constructor handling. @@ -3268,12 +3297,24 @@ The contract resolver. + + + Gets or sets the equality comparer used by the serializer when comparing references. + + The equality comparer. + Gets or sets the used by the serializer when resolving references. The reference resolver. + + + Gets or sets a function that creates the used by the serializer when resolving references. + + A function that creates the used by the serializer when resolving references. + Gets or sets the used by the serializer when writing trace messages. @@ -3282,7 +3323,13 @@ - Gets or sets the used by the serializer when resolving type names. + Gets or sets the used by the serializer when resolving type names. + + The binder. + + + + Gets or sets the used by the serializer when resolving type names. The binder. @@ -3300,124 +3347,259 @@ - Get or set how and values are formatting when writing JSON text. + Gets or sets how and values are formatted when writing JSON text, + and the expected date format when reading JSON text. + The default value is "yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFFK". Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a . + A null value means there is no maximum. + The default value is 64. Indicates how JSON text output is formatted. + The default value is . - Get or set how dates are written to JSON text. + Gets or sets how dates are written to JSON text. + The default value is . - Get or set how time zones are handling during serialization and deserialization. + Gets or sets how time zones are handled during serialization and deserialization. + The default value is . - Get or set how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON. + Gets or sets how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON. + The default value is . - Get or set how special floating point numbers, e.g. , + Gets or sets how special floating point numbers, e.g. , and , are written as JSON. + The default value is . - Get or set how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. + Gets or sets how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. + The default value is . - Get or set how strings are escaped when writing JSON text. + Gets or sets how strings are escaped when writing JSON text. + The default value is . - Gets or sets the culture used when reading JSON. Defaults to . + Gets or sets the culture used when reading JSON. + The default value is . Gets a value indicating whether there will be a check for additional content after deserializing an object. + The default value is false. true if there will be a check for additional content after deserializing an object; otherwise, false. + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class + using values copied from the passed in . + + Represents a reader that provides fast, non-cached, forward-only access to JSON text data. + + + Asynchronously reads the next JSON token from the source. + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous read. The + property returns true if the next token was read successfully; false if there are no more tokens to read. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously reads the next JSON token from the source as a of . + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous read. The + property returns the of . This result will be null at the end of an array. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously reads the next JSON token from the source as a []. + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous read. The + property returns the []. This result will be null at the end of an array. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously reads the next JSON token from the source as a of . + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous read. The + property returns the of . This result will be null at the end of an array. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously reads the next JSON token from the source as a of . + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous read. The + property returns the of . This result will be null at the end of an array. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously reads the next JSON token from the source as a of . + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous read. The + property returns the of . This result will be null at the end of an array. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously reads the next JSON token from the source as a of . + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous read. The + property returns the of . This result will be null at the end of an array. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously reads the next JSON token from the source as a of . + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous read. The + property returns the of . This result will be null at the end of an array. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously reads the next JSON token from the source as a . + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous read. The + property returns the . This result will be null at the end of an array. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + - Initializes a new instance of the class with the specified . + Initializes a new instance of the class with the specified . + + The containing the JSON data to read. + + + + Gets or sets the reader's property name table. + + + + + Gets or sets the reader's character buffer pool. - The TextReader containing the XML data to read. - Reads the next JSON token from the stream. + Reads the next JSON token from the underlying . - true if the next token was read successfully; false if there are no more tokens to read. + true if the next token was read successfully; false if there are no more tokens to read. - - - Reads the next JSON token from the stream as a . - - - A or a null reference if the next JSON token is null. This method will return null at the end of an array. - - - - - Reads the next JSON token from the stream as a . - - A . This method will return null at the end of an array. - - Reads the next JSON token from the stream as a . + Reads the next JSON token from the underlying as a of . - A . This method will return null at the end of an array. - - - - Reads the next JSON token from the stream as a . - - A . This method will return null at the end of an array. + A of . This method will return null at the end of an array. - Reads the next JSON token from the stream as a . + Reads the next JSON token from the underlying as a of . + + A of . This method will return null at the end of an array. + + + + Reads the next JSON token from the underlying as a . A . This method will return null at the end of an array. + + + Reads the next JSON token from the underlying as a []. + + A [] or null if the next JSON token is null. This method will return null at the end of an array. + + + + Reads the next JSON token from the underlying as a of . + + A of . This method will return null at the end of an array. + - Reads the next JSON token from the stream as a . + Reads the next JSON token from the underlying as a of . - A . This method will return null at the end of an array. + A of . This method will return null at the end of an array. + + + + Reads the next JSON token from the underlying as a of . + + A of . This method will return null at the end of an array. + + + + Reads the next JSON token from the underlying as a of . + + A of . This method will return null at the end of an array. - Changes the state to closed. + Changes the reader's state to . + If is set to true, the underlying is also closed. @@ -3425,7 +3607,7 @@ Gets a value indicating whether the class can return line information. - true if LineNumber and LinePosition can be provided; otherwise, false. + true if and can be provided; otherwise, false. @@ -3433,7 +3615,7 @@ Gets the current line number. - The current line number or 0 if no line information is available (for example, HasLineInfo returns false). + The current line number or 0 if no line information is available (for example, returns false). @@ -3441,38 +3623,644 @@ Gets the current line position. - The current line position or 0 if no line information is available (for example, HasLineInfo returns false). + The current line position or 0 if no line information is available (for example, returns false). - Represents a writer that provides a fast, non-cached, forward-only way of generating Json data. + Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data. + + + + + Asynchronously flushes whatever is in the buffer to the destination and also flushes the destination. + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes the JSON value delimiter. + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes the specified end token. + + The end token to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously closes this writer. + If is set to true, the destination is also closed. + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes the end of the current JSON object or array. + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes indent characters. + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes an indent space. + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes raw JSON without changing the writer's state. + + The raw JSON to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes a null value. + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes the property name of a name/value pair of a JSON object. + + The name of the property. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes the property name of a name/value pair of a JSON object. + + The name of the property. + A flag to indicate whether the text should be escaped when it is written as a JSON property name. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes the beginning of a JSON array. + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes the beginning of a JSON object. + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes the start of a constructor with the given name. + + The name of the constructor. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes an undefined value. + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes the given white space. + + The string of white space characters. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes a of value. + + The of value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes a value. + + The value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes a value. + + The value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes a of value. + + The of value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes a [] value. + + The [] value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes a value. + + The value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes a of value. + + The of value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes a value. + + The value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes a of value. + + The of value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes a value. + + The value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes a of value. + + The of value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes a value. + + The value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes a of value. + + The of value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes a value. + + The value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes a of value. + + The of value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes a value. + + The value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes a of value. + + The of value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes a value. + + The value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes a of value. + + The of value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes a value. + + The value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes a of value. + + The of value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes a value. + + The value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes a of value. + + The of value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes a value. + + The value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes a value. + + The value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes a of value. + + The of value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes a value. + + The value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes a of value. + + The of value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes a value. + + The value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes a value. + + The value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes a of value. + + The of value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes a value. + + The value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes a of value. + + The of value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes a value. + + The value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes a of value. + + The of value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes a value. + + The value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes a value. + + The value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes a of value. + + The of value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes a comment /*...*/ containing the specified text. + + Text to place inside the comment. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes the end of an array. + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes the end of a constructor. + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes the end of a JSON object. + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Asynchronously writes raw JSON where a value is expected and updates the writer's state. + + The raw JSON to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + Derived classes must override this method to get asynchronous behaviour. Otherwise it will + execute synchronously, returning an already-completed task. + + + + Gets or sets the writer's character array pool. + + + + + Gets or sets how many s to write for each level in the hierarchy when is set to . + + + + + Gets or sets which character to use to quote attribute values. + + + + + Gets or sets which character to use for indenting when is set to . + + + + + Gets or sets a value indicating whether object names will be surrounded with quotes. - Creates an instance of the JsonWriter class using the specified . + Initializes a new instance of the class using the specified . - The TextWriter to write to. + The to write to. - Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream. + Flushes whatever is in the buffer to the underlying and also flushes the underlying . - Closes this stream and the underlying stream. + Closes this writer. + If is set to true, the underlying is also closed. + If is set to true, the JSON is auto-completed. - Writes the beginning of a Json object. + Writes the beginning of a JSON object. - Writes the beginning of a Json array. + Writes the beginning of a JSON array. @@ -3489,7 +4277,7 @@ - Writes the property name of a name/value pair on a Json object. + Writes the property name of a name/value pair on a JSON object. The name of the property. @@ -3576,9 +4364,9 @@ - Writes a value. + Writes a of value. - The value to write. + The of value to write. @@ -3588,9 +4376,9 @@ - Writes a value. + Writes a of value. - The value to write. + The of value to write. @@ -3642,9 +4430,9 @@ - Writes a value. + Writes a [] value. - The value to write. + The [] value to write. @@ -3672,44 +4460,24 @@ - Writes out a comment /*...*/ containing the specified text. + Writes a comment /*...*/ containing the specified text. Text to place inside the comment. - Writes out the given white space. + Writes the given white space. The string of white space characters. - - - Gets or sets how many IndentChars to write for each level in the hierarchy when is set to Formatting.Indented. - - - - - Gets or sets which character to use to quote attribute values. - - - - - Gets or sets which character to use for indenting when is set to Formatting.Indented. - - - - - Gets or sets a value indicating whether object names will be surrounded with quotes. - - - Specifies the type of Json token. + Specifies the type of JSON token. - This is returned by the if a method has not been called. + This is returned by the if a read method has not been called. @@ -3799,62 +4567,14 @@ + Represents a reader that provides validation. + + + JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. + - - - Initializes a new instance of the class that - validates the content returned from the given . - - The to read from while validating. - - - - Reads the next JSON token from the stream as a . - - A . - - - - Reads the next JSON token from the stream as a . - - - A or a null reference if the next JSON token is null. - - - - - Reads the next JSON token from the stream as a . - - A . - - - - Reads the next JSON token from the stream as a . - - A . This method will return null at the end of an array. - - - - Reads the next JSON token from the stream as a . - - A . This method will return null at the end of an array. - - - - Reads the next JSON token from the stream as a . - - A . - - - - Reads the next JSON token from the stream. - - - true if the next token was read successfully; false if there are no more tokens to read. - - Sets an event handler for receiving schema validation errors. @@ -3891,10 +4611,17 @@ - Gets the Common Language Runtime (CLR) type for the current JSON token. + Gets the .NET type for the current JSON token. + + + Initializes a new instance of the class that + validates the content returned from the given . + + The to read from while validating. + Gets or sets the schema. @@ -3907,11 +4634,1184 @@ The specified in the constructor. + + + Changes the reader's state to . + If is set to true, the underlying is also closed. + + + + + Reads the next JSON token from the underlying as a of . + + A of . + + + + Reads the next JSON token from the underlying as a []. + + + A [] or null if the next JSON token is null. + + + + + Reads the next JSON token from the underlying as a of . + + A of . + + + + Reads the next JSON token from the underlying as a of . + + A of . + + + + Reads the next JSON token from the underlying as a of . + + A of . + + + + Reads the next JSON token from the underlying as a . + + A . This method will return null at the end of an array. + + + + Reads the next JSON token from the underlying as a of . + + A of . This method will return null at the end of an array. + + + + Reads the next JSON token from the underlying as a of . + + A of . + + + + Reads the next JSON token from the underlying . + + + true if the next token was read successfully; false if there are no more tokens to read. + + + + + Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data. + + + + + Asynchronously closes this writer. + If is set to true, the destination is also closed. + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously flushes whatever is in the buffer to the destination and also flushes the destination. + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes the specified end token. + + The end token to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes indent characters. + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes the JSON value delimiter. + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes an indent space. + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes raw JSON without changing the writer's state. + + The raw JSON to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes the end of the current JSON object or array. + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes the end of an array. + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes the end of a constructor. + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes the end of a JSON object. + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes a null value. + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes the property name of a name/value pair of a JSON object. + + The name of the property. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes the property name of a name/value pair of a JSON object. + + The name of the property. + A flag to indicate whether the text should be escaped when it is written as a JSON property name. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes the beginning of a JSON array. + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes a comment /*...*/ containing the specified text. + + Text to place inside the comment. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes raw JSON where a value is expected and updates the writer's state. + + The raw JSON to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes the start of a constructor with the given name. + + The name of the constructor. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes the beginning of a JSON object. + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes the current token. + + The to read the token from. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes the current token. + + The to read the token from. + A flag indicating whether the current token's children should be written. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes the token and its value. + + The to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes the token and its value. + + The to write. + + The value to write. + A value is only required for tokens that have an associated value, e.g. the property name for . + null can be passed to the method for tokens that don't have a value, e.g. . + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes a of value. + + The of value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes a value. + + The value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes a value. + + The value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes a of value. + + The of value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes a [] value. + + The [] value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes a value. + + The value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes a of value. + + The of value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes a value. + + The value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes a of value. + + The of value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes a value. + + The value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes a of value. + + The of value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes a value. + + The value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes a of value. + + The of value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes a value. + + The value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes a of value. + + The of value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes a value. + + The value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes a of value. + + The of value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes a value. + + The value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes a of value. + + The of value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes a value. + + The value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes a of value. + + The of value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes a value. + + The value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes a of value. + + The of value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes a value. + + The value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes a value. + + The value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes a of value. + + The of value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes a value. + + The value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes a of value. + + The of value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes a value. + + The value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes a value. + + The value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes a of value. + + The of value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes a value. + + The value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes a of value. + + The of value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes a value. + + The value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes a of value. + + The of value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes a value. + + The value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes a value. + + The value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes a of value. + + The of value to write. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes an undefined value. + + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously writes the given white space. + + The string of white space characters. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Asynchronously ets the state of the . + + The being written. + The value being written. + The token to monitor for cancellation requests. The default value is . + A that represents the asynchronous operation. + The default behaviour is to execute synchronously, returning an already-completed task. Derived + classes can override this behaviour for true asynchronicity. + + + + Gets or sets a value indicating whether the destination should be closed when this writer is closed. + + + true to close the destination when this writer is closed; otherwise false. The default is true. + + + + + Gets or sets a value indicating whether the JSON should be auto-completed when this writer is closed. + + + true to auto-complete the JSON when this writer is closed; otherwise false. The default is true. + + + + + Gets the top. + + The top. + + + + Gets the state of the writer. + + + + + Gets the path of the writer. + + + + + Gets or sets a value indicating how JSON text output should be formatted. + + + + + Gets or sets how dates are written to JSON text. + + + + + Gets or sets how time zones are handled when writing JSON text. + + + + + Gets or sets how strings are escaped when writing JSON text. + + + + + Gets or sets how special floating point numbers, e.g. , + and , + are written to JSON text. + + + + + Gets or sets how and values are formatted when writing JSON text. + + + + + Gets or sets the culture used when writing JSON. Defaults to . + + + + + Initializes a new instance of the class. + + + + + Flushes whatever is in the buffer to the destination and also flushes the destination. + + + + + Closes this writer. + If is set to true, the destination is also closed. + If is set to true, the JSON is auto-completed. + + + + + Writes the beginning of a JSON object. + + + + + Writes the end of a JSON object. + + + + + Writes the beginning of a JSON array. + + + + + Writes the end of an array. + + + + + Writes the start of a constructor with the given name. + + The name of the constructor. + + + + Writes the end constructor. + + + + + Writes the property name of a name/value pair of a JSON object. + + The name of the property. + + + + Writes the property name of a name/value pair of a JSON object. + + The name of the property. + A flag to indicate whether the text should be escaped when it is written as a JSON property name. + + + + Writes the end of the current JSON object or array. + + + + + Writes the current token and its children. + + The to read the token from. + + + + Writes the current token. + + The to read the token from. + A flag indicating whether the current token's children should be written. + + + + Writes the token and its value. + + The to write. + + The value to write. + A value is only required for tokens that have an associated value, e.g. the property name for . + null can be passed to the method for tokens that don't have a value, e.g. . + + + + + Writes the token. + + The to write. + + + + Writes the specified end token. + + The end token to write. + + + + Writes indent characters. + + + + + Writes the JSON value delimiter. + + + + + Writes an indent space. + + + + + Writes a null value. + + + + + Writes an undefined value. + + + + + Writes raw JSON without changing the writer's state. + + The raw JSON to write. + + + + Writes raw JSON where a value is expected and updates the writer's state. + + The raw JSON to write. + + + + Writes a value. + + The value to write. + + + + Writes a value. + + The value to write. + + + + Writes a value. + + The value to write. + + + + Writes a value. + + The value to write. + + + + Writes a value. + + The value to write. + + + + Writes a value. + + The value to write. + + + + Writes a value. + + The value to write. + + + + Writes a value. + + The value to write. + + + + Writes a value. + + The value to write. + + + + Writes a value. + + The value to write. + + + + Writes a value. + + The value to write. + + + + Writes a value. + + The value to write. + + + + Writes a value. + + The value to write. + + + + Writes a value. + + The value to write. + + + + Writes a value. + + The value to write. + + + + Writes a value. + + The value to write. + + + + Writes a value. + + The value to write. + + + + Writes a value. + + The value to write. + + + + Writes a of value. + + The of value to write. + + + + Writes a of value. + + The of value to write. + + + + Writes a of value. + + The of value to write. + + + + Writes a of value. + + The of value to write. + + + + Writes a of value. + + The of value to write. + + + + Writes a of value. + + The of value to write. + + + + Writes a of value. + + The of value to write. + + + + Writes a of value. + + The of value to write. + + + + Writes a of value. + + The of value to write. + + + + Writes a of value. + + The of value to write. + + + + Writes a of value. + + The of value to write. + + + + Writes a of value. + + The of value to write. + + + + Writes a of value. + + The of value to write. + + + + Writes a of value. + + The of value to write. + + + + Writes a of value. + + The of value to write. + + + + Writes a of value. + + The of value to write. + + + + Writes a of value. + + The of value to write. + + + + Writes a [] value. + + The [] value to write. + + + + Writes a value. + + The value to write. + + + + Writes a value. + An error will raised if the value cannot be written as a single JSON token. + + The value to write. + + + + Writes a comment /*...*/ containing the specified text. + + Text to place inside the comment. + + + + Writes the given white space. + + The string of white space characters. + + + + Releases unmanaged and - optionally - managed resources. + + true to release both managed and unmanaged resources; false to release only unmanaged resources. + + + + Sets the state of the . + + The being written. + The value being written. + - The exception thrown when an error occurs while reading Json text. + The exception thrown when an error occurs while writing JSON text. + + + Gets the path to the JSON where the error occurred. + + The path to the JSON where the error occurred. + Initializes a new instance of the class. @@ -3930,7 +5830,7 @@ with a specified error message and a reference to the inner exception that is the cause of this exception. The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. + The exception that is the cause of the current exception, or null if no inner exception is specified. @@ -3938,14 +5838,52 @@ The that holds the serialized object data about the exception being thrown. The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). + The parameter is null. + The class name is null or is zero (0). - + - Gets the path to the JSON where the error occurred. + Initializes a new instance of the class + with a specified error message, JSON path and a reference to the inner exception that is the cause of this exception. + + The error message that explains the reason for the exception. + The path to the JSON where the error occurred. + The exception that is the cause of the current exception, or null if no inner exception is specified. + + + + Specifies how JSON comments are handled when loading JSON. + + + + + Ignore comments. + + + + + Load comments as a with type . + + + + + Specifies how duplicate property names are handled when loading JSON. + + + + + Replace the existing value when there is a duplicate property. The value of the last property in the JSON object will be used. + + + + + Ignore the new value when there is a duplicate property. The value of the first property in the JSON object will be used. + + + + + Throw a when a duplicate property is encountered. - The path to the JSON where the error occurred. @@ -3958,7 +5896,15 @@ The type of the objects in source, constrained to . An of that contains the source collection. - An of that contains the ancestors of every node in the source collection. + An of that contains the ancestors of every token in the source collection. + + + + Returns a collection of tokens that contains every token in the source collection, and the ancestors of every token in the source collection. + + The type of the objects in source, constrained to . + An of that contains the source collection. + An of that contains every token in the source collection, the ancestors of every token in the source collection. @@ -3966,7 +5912,15 @@ The type of the objects in source, constrained to . An of that contains the source collection. - An of that contains the descendants of every node in the source collection. + An of that contains the descendants of every token in the source collection. + + + + Returns a collection of tokens that contains every token in the source collection, and the descendants of every token in the source collection. + + The type of the objects in source, constrained to . + An of that contains the source collection. + An of that contains every token in the source collection, and the descendants of every token in the source collection. @@ -3981,14 +5935,14 @@ An of that contains the source collection. The token key. - An of that contains the values of every node in the source collection with the given key. + An of that contains the values of every token in the source collection with the given key. Returns a collection of child values of every object in the source collection. An of that contains the source collection. - An of that contains the values of every node in the source collection. + An of that contains the values of every token in the source collection. @@ -3997,7 +5951,7 @@ The type to convert the values to. An of that contains the source collection. The token key. - An that contains the converted values of every node in the source collection with the given key. + An that contains the converted values of every token in the source collection with the given key. @@ -4005,7 +5959,7 @@ The type to convert the values to. An of that contains the source collection. - An that contains the converted values of every node in the source collection. + An that contains the converted values of every token in the source collection. @@ -4030,7 +5984,7 @@ The source collection type. An of that contains the source collection. - An of that contains the values of every node in the source collection. + An of that contains the values of every token in the source collection. @@ -4039,7 +5993,7 @@ An of that contains the source collection. The type to convert the values to. The source collection type. - An that contains the converted values of every node in the source collection. + An that contains the converted values of every token in the source collection. @@ -4060,11 +6014,11 @@ Represents a collection of objects. - The type of token + The type of token. - Gets the with the specified key. + Gets the of with the specified key. @@ -4076,23 +6030,1276 @@ + + + Writes this token to a asynchronously. + + A into which this method will write. + The token to monitor for cancellation requests. + A collection of which will be used when writing the token. + A that represents the asynchronous write operation. + + + + Asynchronously loads a from a . + + A that will be read for the content of the . + If this is null, default load settings will be used. + The token to monitor for cancellation requests. The default value is . + A representing the asynchronous load. The property contains the JSON that was read from the specified . + + + + Asynchronously loads a from a . + + A that will be read for the content of the . + The used to load the JSON. + If this is null, default load settings will be used. + The token to monitor for cancellation requests. The default value is . + A representing the asynchronous load. The property contains the JSON that was read from the specified . + + + + Gets the container's children tokens. + + The container's children tokens. + + + + Gets the node type for this . + + The type. + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class from another object. + + A object to copy from. + + + + Initializes a new instance of the class with the specified content. + + The contents of the array. + + + + Initializes a new instance of the class with the specified content. + + The contents of the array. + + + + Loads an from a . + + A that will be read for the content of the . + A that contains the JSON that was read from the specified . + + + + Loads an from a . + + A that will be read for the content of the . + The used to load the JSON. + If this is null, default load settings will be used. + A that contains the JSON that was read from the specified . + + + + Load a from a string that contains JSON. + + A that contains JSON. + A populated from the string that contains JSON. + + + + + + + Load a from a string that contains JSON. + + A that contains JSON. + The used to load the JSON. + If this is null, default load settings will be used. + A populated from the string that contains JSON. + + + + + + + Creates a from an object. + + The object that will be used to create . + A with the values of the specified object. + + + + Creates a from an object. + + The object that will be used to create . + The that will be used to read the object. + A with the values of the specified object. + + + + Writes this token to a . + + A into which this method will write. + A collection of which will be used when writing the token. + + + + Gets the with the specified key. + + The with the specified key. + + + + Gets or sets the at the specified index. + + + + + + Determines the index of a specific item in the . + + The object to locate in the . + + The index of if found in the list; otherwise, -1. + + + + + Inserts an item to the at the specified index. + + The zero-based index at which should be inserted. + The object to insert into the . + + is not a valid index in the . + + + + + Removes the item at the specified index. + + The zero-based index of the item to remove. + + is not a valid index in the . + + + + + Returns an enumerator that iterates through the collection. + + + A of that can be used to iterate through the collection. + + + + + Adds an item to the . + + The object to add to the . + + + + Removes all items from the . + + + + + Determines whether the contains a specific value. + + The object to locate in the . + + true if is found in the ; otherwise, false. + + + + + Copies the elements of the to an array, starting at a particular array index. + + The array. + Index of the array. + + + + Gets a value indicating whether the is read-only. + + true if the is read-only; otherwise, false. + + + + Removes the first occurrence of a specific object from the . + + The object to remove from the . + + true if was successfully removed from the ; otherwise, false. This method also returns false if is not found in the original . + + + + + Represents a JSON constructor. + + + + + Writes this token to a asynchronously. + + A into which this method will write. + The token to monitor for cancellation requests. + A collection of which will be used when writing the token. + A that represents the asynchronous write operation. + + + + Asynchronously loads a from a . + + A that will be read for the content of the . + The token to monitor for cancellation requests. The default value is . + + A that represents the asynchronous load. The + property returns a that contains the JSON that was read from the specified . + + + + Asynchronously loads a from a . + + A that will be read for the content of the . + The used to load the JSON. + If this is null, default load settings will be used. + The token to monitor for cancellation requests. The default value is . + + A that represents the asynchronous load. The + property returns a that contains the JSON that was read from the specified . + + + + Gets the container's children tokens. + + The container's children tokens. + + + + Gets or sets the name of this constructor. + + The constructor name. + + + + Gets the node type for this . + + The type. + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class from another object. + + A object to copy from. + + + + Initializes a new instance of the class with the specified name and content. + + The constructor name. + The contents of the constructor. + + + + Initializes a new instance of the class with the specified name and content. + + The constructor name. + The contents of the constructor. + + + + Initializes a new instance of the class with the specified name. + + The constructor name. + + + + Writes this token to a . + + A into which this method will write. + A collection of which will be used when writing the token. + + + + Gets the with the specified key. + + The with the specified key. + + + + Loads a from a . + + A that will be read for the content of the . + A that contains the JSON that was read from the specified . + + + + Loads a from a . + + A that will be read for the content of the . + The used to load the JSON. + If this is null, default load settings will be used. + A that contains the JSON that was read from the specified . + Represents a token that can contain other tokens. + + + Occurs when the list changes or an item in the list changes. + + + + + Occurs before an item is added to the collection. + + + + + Occurs when the items list of the collection has changed, or the collection is reset. + + + + + Gets the container's children tokens. + + The container's children tokens. + + + + Raises the event. + + The instance containing the event data. + + + + Raises the event. + + The instance containing the event data. + + + + Raises the event. + + The instance containing the event data. + + + + Gets a value indicating whether this token has child tokens. + + + true if this token has child values; otherwise, false. + + + + + Get the first child token of this token. + + + A containing the first child token of the . + + + + + Get the last child token of this token. + + + A containing the last child token of the . + + + + + Returns a collection of the child tokens of this token, in document order. + + + An of containing the child tokens of this , in document order. + + + + + Returns a collection of the child values of this token, in document order. + + The type to convert the values to. + + A containing the child values of this , in document order. + + + + + Returns a collection of the descendant tokens for this token in document order. + + An of containing the descendant tokens of the . + + + + Returns a collection of the tokens that contain this token, and all descendant tokens of this token, in document order. + + An of containing this token, and all the descendant tokens of the . + + + + Adds the specified content as children of this . + + The content to be added. + + + + Adds the specified content as the first children of this . + + The content to be added. + + + + Creates a that can be used to add tokens to the . + + A that is ready to have content written to it. + + + + Replaces the child nodes of this token with the specified content. + + The content. + + + + Removes the child nodes from this token. + + + + + Merge the specified content into this . + + The content to be merged. + + + + Merge the specified content into this using . + + The content to be merged. + The used to merge the content. + + + + Gets the count of child JSON tokens. + + The count of child JSON tokens. + + + + Represents a collection of objects. + + The type of token. + + + + An empty collection of objects. + + + + + Initializes a new instance of the struct. + + The enumerable. + + + + Returns an enumerator that can be used to iterate through the collection. + + + A that can be used to iterate through the collection. + + + + + Gets the of with the specified key. + + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Returns a hash code for this instance. + + + A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + + + + + Represents a JSON object. + + + + + + + + Writes this token to a asynchronously. + + A into which this method will write. + The token to monitor for cancellation requests. + A collection of which will be used when writing the token. + A that represents the asynchronous write operation. + + + + Asynchronously loads a from a . + + A that will be read for the content of the . + The token to monitor for cancellation requests. The default value is . + + A that represents the asynchronous load. The + property returns a that contains the JSON that was read from the specified . + + + + Asynchronously loads a from a . + + A that will be read for the content of the . + The used to load the JSON. + If this is null, default load settings will be used. + The token to monitor for cancellation requests. The default value is . + + A that represents the asynchronous load. The + property returns a that contains the JSON that was read from the specified . + + + + Gets the container's children tokens. + + The container's children tokens. + + + + Occurs when a property value changes. + + + + + Occurs when a property value is changing. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class from another object. + + A object to copy from. + + + + Initializes a new instance of the class with the specified content. + + The contents of the object. + + + + Initializes a new instance of the class with the specified content. + + The contents of the object. + + + + Gets the node type for this . + + The type. + + + + Gets an of of this object's properties. + + An of of this object's properties. + + + + Gets a with the specified name. + + The property name. + A with the specified name or null. + + + + Gets the with the specified name. + The exact name will be searched for first and if no matching property is found then + the will be used to match a property. + + The property name. + One of the enumeration values that specifies how the strings will be compared. + A matched with the specified name or null. + + + + Gets a of of this object's property values. + + A of of this object's property values. + + + + Gets the with the specified key. + + The with the specified key. + + + + Gets or sets the with the specified property name. + + + + + + Loads a from a . + + A that will be read for the content of the . + A that contains the JSON that was read from the specified . + + is not valid JSON. + + + + + Loads a from a . + + A that will be read for the content of the . + The used to load the JSON. + If this is null, default load settings will be used. + A that contains the JSON that was read from the specified . + + is not valid JSON. + + + + + Load a from a string that contains JSON. + + A that contains JSON. + A populated from the string that contains JSON. + + is not valid JSON. + + + + + + + + Load a from a string that contains JSON. + + A that contains JSON. + The used to load the JSON. + If this is null, default load settings will be used. + A populated from the string that contains JSON. + + is not valid JSON. + + + + + + + + Creates a from an object. + + The object that will be used to create . + A with the values of the specified object. + + + + Creates a from an object. + + The object that will be used to create . + The that will be used to read the object. + A with the values of the specified object. + + + + Writes this token to a . + + A into which this method will write. + A collection of which will be used when writing the token. + + + + Gets the with the specified property name. + + Name of the property. + The with the specified property name. + + + + Gets the with the specified property name. + The exact property name will be searched for first and if no matching property is found then + the will be used to match a property. + + Name of the property. + One of the enumeration values that specifies how the strings will be compared. + The with the specified property name. + + + + Tries to get the with the specified property name. + The exact property name will be searched for first and if no matching property is found then + the will be used to match a property. + + Name of the property. + The value. + One of the enumeration values that specifies how the strings will be compared. + true if a value was successfully retrieved; otherwise, false. + + + + Adds the specified property name. + + Name of the property. + The value. + + + + Determines whether the JSON object has the specified property name. + + Name of the property. + true if the JSON object has the specified property name; otherwise, false. + + + + Removes the property with the specified name. + + Name of the property. + true if item was successfully removed; otherwise, false. + + + + Tries to get the with the specified property name. + + Name of the property. + The value. + true if a value was successfully retrieved; otherwise, false. + + + + Returns an enumerator that can be used to iterate through the collection. + + + A that can be used to iterate through the collection. + + + + + Raises the event with the provided arguments. + + Name of the property. + + + + Raises the event with the provided arguments. + + Name of the property. + + + + Returns the responsible for binding operations performed on this object. + + The expression tree representation of the runtime value. + + The to bind this object. + + + + + Represents a JSON property. + + + + + Writes this token to a asynchronously. + + A into which this method will write. + The token to monitor for cancellation requests. + A collection of which will be used when writing the token. + A that represents the asynchronous write operation. + + + + Asynchronously loads a from a . + + A that will be read for the content of the . + The token to monitor for cancellation requests. The default value is . + A representing the asynchronous creation. The + property returns a that contains the JSON that was read from the specified . + + + + Asynchronously loads a from a . + + A that will be read for the content of the . + The used to load the JSON. + If this is null, default load settings will be used. + The token to monitor for cancellation requests. The default value is . + A representing the asynchronous creation. The + property returns a that contains the JSON that was read from the specified . + + + + Gets the container's children tokens. + + The container's children tokens. + + + + Gets the property name. + + The property name. + + + + Gets or sets the property value. + + The property value. + + + + Initializes a new instance of the class from another object. + + A object to copy from. + + + + Gets the node type for this . + + The type. + + + + Initializes a new instance of the class. + + The property name. + The property content. + + + + Initializes a new instance of the class. + + The property name. + The property content. + + + + Writes this token to a . + + A into which this method will write. + A collection of which will be used when writing the token. + + + + Loads a from a . + + A that will be read for the content of the . + A that contains the JSON that was read from the specified . + + + + Loads a from a . + + A that will be read for the content of the . + The used to load the JSON. + If this is null, default load settings will be used. + A that contains the JSON that was read from the specified . + + + + Represents a view of a . + + + + + Initializes a new instance of the class. + + The name. + + + + When overridden in a derived class, returns whether resetting an object changes its value. + + + true if resetting the component changes its value; otherwise, false. + + The component to test for reset capability. + + + + When overridden in a derived class, gets the current value of the property on a component. + + + The value of a property for a given component. + + The component with the property for which to retrieve the value. + + + + When overridden in a derived class, resets the value for this property of the component to the default value. + + The component with the property value that is to be reset to the default value. + + + + When overridden in a derived class, sets the value of the component to a different value. + + The component with the property value that is to be set. + The new value. + + + + When overridden in a derived class, determines a value indicating whether the value of this property needs to be persisted. + + + true if the property should be persisted; otherwise, false. + + The component with the property to be examined for persistence. + + + + When overridden in a derived class, gets the type of the component this property is bound to. + + + A that represents the type of component this property is bound to. + When the or + + methods are invoked, the object specified might be an instance of this type. + + + + + When overridden in a derived class, gets a value indicating whether this property is read-only. + + + true if the property is read-only; otherwise, false. + + + + + When overridden in a derived class, gets the type of the property. + + + A that represents the type of the property. + + + + + Gets the hash code for the name of the member. + + + + The hash code for the name of the member. + + + + + Represents a raw JSON string. + + + + + Asynchronously creates an instance of with the content of the reader's current token. + + The reader. + The token to monitor for cancellation requests. The default value is . + A representing the asynchronous creation. The + property returns an instance of with the content of the reader's current token. + + + + Initializes a new instance of the class from another object. + + A object to copy from. + + + + Initializes a new instance of the class. + + The raw json. + + + + Creates an instance of with the content of the reader's current token. + + The reader. + An instance of with the content of the reader's current token. + + + + Specifies the settings used when cloning JSON. + + + + + Initializes a new instance of the class. + + + + + Gets or sets a flag that indicates whether to copy annotations when cloning a . + The default value is true. + + + A flag that indicates whether to copy annotations when cloning a . + + + + + Specifies the settings used when loading JSON. + + + + + Initializes a new instance of the class. + + + + + Gets or sets how JSON comments are handled when loading JSON. + The default value is . + + The JSON comment handling. + + + + Gets or sets how JSON line info is handled when loading JSON. + The default value is . + + The JSON line info handling. + + + + Gets or sets how duplicate property names in JSON objects are handled when loading JSON. + The default value is . + + The JSON duplicate property name handling. + + + + Specifies the settings used when merging JSON. + + + + + Initializes a new instance of the class. + + + + + Gets or sets the method used when merging JSON arrays. + + The method used when merging JSON arrays. + + + + Gets or sets how null value properties are merged. + + How null value properties are merged. + + + + Gets or sets the comparison used to match property names while merging. + The exact property name will be searched for first and if no matching property is found then + the will be used to match a property. + + The comparison used to match property names while merging. + + + + Specifies the settings used when selecting JSON. + + + + + Gets or sets a timeout that will be used when executing regular expressions. + + The timeout that will be used when executing regular expressions. + + + + Gets or sets a flag that indicates whether an error should be thrown if + no tokens are found when evaluating part of the expression. + + + A flag that indicates whether an error should be thrown if + no tokens are found when evaluating part of the expression. + + Represents an abstract JSON token. + + + Writes this token to a asynchronously. + + A into which this method will write. + The token to monitor for cancellation requests. + A collection of which will be used when writing the token. + A that represents the asynchronous write operation. + + + + Writes this token to a asynchronously. + + A into which this method will write. + A collection of which will be used when writing the token. + A that represents the asynchronous write operation. + + + + Asynchronously creates a from a . + + An positioned at the token to read into this . + The token to monitor for cancellation requests. The default value is . + + A that represents the asynchronous creation. The + property returns a that contains + the token and its descendant tokens + that were read from the reader. The runtime type of the token is determined + by the token type of the first token encountered in the reader. + + + + + Asynchronously creates a from a . + + An positioned at the token to read into this . + The used to load the JSON. + If this is null, default load settings will be used. + The token to monitor for cancellation requests. The default value is . + + A that represents the asynchronous creation. The + property returns a that contains + the token and its descendant tokens + that were read from the reader. The runtime type of the token is determined + by the token type of the first token encountered in the reader. + + + + + Asynchronously creates a from a . + + A positioned at the token to read into this . + The token to monitor for cancellation requests. The default value is . + + A that represents the asynchronous creation. The + property returns a that contains the token and its descendant tokens + that were read from the reader. The runtime type of the token is determined + by the token type of the first token encountered in the reader. + + + + + Asynchronously creates a from a . + + A positioned at the token to read into this . + The used to load the JSON. + If this is null, default load settings will be used. + The token to monitor for cancellation requests. The default value is . + + A that represents the asynchronous creation. The + property returns a that contains the token and its descendant tokens + that were read from the reader. The runtime type of the token is determined + by the token type of the first token encountered in the reader. + + + + + Gets a comparer that can compare two tokens for value equality. + + A that can compare two nodes for value equality. + + + + Gets or sets the parent. + + The parent. + + + + Gets the root of this . + + The root of this . + + + + Gets the node type for this . + + The type. + + + + Gets a value indicating whether this token has child tokens. + + + true if this token has child values; otherwise, false. + + Compares the values of two tokens, including the values of all descendant tokens. The first to compare. The second to compare. - true if the tokens are equal; otherwise false. + true if the tokens are equal; otherwise false. + + + + Gets the next sibling token of this node. + + The that contains the next sibling token. + + + + Gets the previous sibling token of this node. + + The that contains the previous sibling token. + + + + Gets the path of the JSON token. + @@ -4112,6 +7319,12 @@ A collection of the ancestor tokens of this token. + + + Returns a collection of tokens that contain this token, and the ancestors of this token. + + A collection of tokens that contain this token, and the ancestors of this token. + Returns a collection of the sibling tokens after this token, in document order. @@ -4124,6 +7337,12 @@ A collection of the sibling tokens before this token, in document order. + + + Gets the with the specified key. + + The with the specified key. + Gets the with the specified key converted to the specified type. @@ -4132,6 +7351,18 @@ The token key. The converted token value. + + + Get the first child token of this token. + + A containing the first child token of the . + + + + Get the last child token of this token. + + A containing the last child token of the . + Returns a collection of the child tokens of this token, in document order. @@ -4174,6 +7405,10 @@ Returns the indented JSON for this token. + + ToString() returns a non-JSON string value for tokens with a type of . + If you want the JSON for all token types then you should use . + The indented JSON for this token. @@ -4182,8 +7417,8 @@ Returns the JSON for this token using the given formatting and converters. - Indicates how the output is formatted. - A collection of which will be used when writing the token. + Indicates how the output should be formatted. + A collection of s which will be used when writing the token. The JSON for this token using the given formatting and converters. @@ -4202,49 +7437,49 @@ - Performs an explicit conversion from to . + Performs an explicit conversion from to of . The value. The result of the conversion. - Performs an explicit conversion from to . + Performs an explicit conversion from to of . The value. The result of the conversion. - Performs an explicit conversion from to . + Performs an explicit conversion from to of . The value. The result of the conversion. - Performs an explicit conversion from to . + Performs an explicit conversion from to of . The value. The result of the conversion. - Performs an explicit conversion from to . + Performs an explicit conversion from to of . The value. The result of the conversion. - Performs an explicit conversion from to . + Performs an explicit conversion from to of . The value. The result of the conversion. - Performs an explicit conversion from to . + Performs an explicit conversion from to of . The value. The result of the conversion. @@ -4293,56 +7528,56 @@ - Performs an explicit conversion from to . + Performs an explicit conversion from to of . The value. The result of the conversion. - Performs an explicit conversion from to . + Performs an explicit conversion from to of . The value. The result of the conversion. - Performs an explicit conversion from to . + Performs an explicit conversion from to of . The value. The result of the conversion. - Performs an explicit conversion from to . + Performs an explicit conversion from to of . The value. The result of the conversion. - Performs an explicit conversion from to . + Performs an explicit conversion from to of . The value. The result of the conversion. - Performs an explicit conversion from to . + Performs an explicit conversion from to of . The value. The result of the conversion. - Performs an explicit conversion from to . + Performs an explicit conversion from to of . The value. The result of the conversion. - Performs an explicit conversion from to . + Performs an explicit conversion from to of . The value. The result of the conversion. @@ -4356,14 +7591,14 @@ - Performs an explicit conversion from to . + Performs an explicit conversion from to of . The value. The result of the conversion. - Performs an explicit conversion from to . + Performs an explicit conversion from to of . The value. The result of the conversion. @@ -4405,7 +7640,7 @@ - Performs an explicit conversion from to . + Performs an explicit conversion from to []. The value. The result of the conversion. @@ -4419,7 +7654,7 @@ - Performs an explicit conversion from to . + Performs an explicit conversion from to of . The value. The result of the conversion. @@ -4433,7 +7668,7 @@ - Performs an explicit conversion from to . + Performs an explicit conversion from to of . The value. The result of the conversion. @@ -4468,7 +7703,7 @@ - Performs an implicit conversion from to . + Performs an implicit conversion from of to . The value to create a from. The initialized with the specified value. @@ -4482,49 +7717,49 @@ - Performs an implicit conversion from to . + Performs an implicit conversion from of to . The value to create a from. The initialized with the specified value. - Performs an implicit conversion from to . + Performs an implicit conversion from of to . The value to create a from. The initialized with the specified value. - Performs an implicit conversion from to . + Performs an implicit conversion from of to . The value to create a from. The initialized with the specified value. - Performs an implicit conversion from to . + Performs an implicit conversion from of to . The value to create a from. The initialized with the specified value. - Performs an implicit conversion from to . + Performs an implicit conversion from of to . The value to create a from. The initialized with the specified value. - Performs an implicit conversion from to . + Performs an implicit conversion from of to . The value to create a from. The initialized with the specified value. - Performs an implicit conversion from to . + Performs an implicit conversion from of to . The value to create a from. The initialized with the specified value. @@ -4552,7 +7787,7 @@ - Performs an implicit conversion from to . + Performs an implicit conversion from of to . The value to create a from. The initialized with the specified value. @@ -4566,14 +7801,14 @@ - Performs an implicit conversion from to . + Performs an implicit conversion from of to . The value to create a from. The initialized with the specified value. - Performs an implicit conversion from to . + Performs an implicit conversion from of to . The value to create a from. The initialized with the specified value. @@ -4587,28 +7822,28 @@ - Performs an implicit conversion from to . + Performs an implicit conversion from of to . The value to create a from. The initialized with the specified value. - Performs an implicit conversion from to . + Performs an implicit conversion from of to . The value to create a from. The initialized with the specified value. - Performs an implicit conversion from to . + Performs an implicit conversion from of to . The value to create a from. The initialized with the specified value. - Performs an implicit conversion from to . + Performs an implicit conversion from of to . The value to create a from. The initialized with the specified value. @@ -4650,7 +7885,7 @@ - Performs an implicit conversion from to . + Performs an implicit conversion from [] to . The value to create a from. The initialized with the specified value. @@ -4671,7 +7906,7 @@ - Performs an implicit conversion from to . + Performs an implicit conversion from of to . The value to create a from. The initialized with the specified value. @@ -4685,23 +7920,23 @@ - Performs an implicit conversion from to . + Performs an implicit conversion from of to . The value to create a from. The initialized with the specified value. - Creates an for this token. + Creates a for this token. - An that can be used to read this token and its descendants. + A that can be used to read this token and its descendants. Creates a from an object. The object that will be used to create . - A with the value of the specified object + A with the value of the specified object. @@ -4709,25 +7944,25 @@ The object that will be used to create . The that will be used when reading the object. - A with the value of the specified object + A with the value of the specified object. - Creates the specified .NET type from the . + Creates an instance of the specified .NET type from the . The object type that the token will be deserialized to. The new object created from the JSON value. - Creates the specified .NET type from the . + Creates an instance of the specified .NET type from the . The object type that the token will be deserialized to. The new object created from the JSON value. - Creates the specified .NET type from the using the specified . + Creates an instance of the specified .NET type from the using the specified . The object type that the token will be deserialized to. The that will be used when creating the object. @@ -4735,7 +7970,7 @@ - Creates the specified .NET type from the using the specified . + Creates an instance of the specified .NET type from the using the specified . The object type that the token will be deserialized to. The that will be used when creating the object. @@ -4745,9 +7980,22 @@ Creates a from a . - An positioned at the token to read into this . + A positioned at the token to read into this . - An that contains the token and its descendant tokens + A that contains the token and its descendant tokens + that were read from the reader. The runtime type of the token is determined + by the token type of the first token encountered in the reader. + + + + + Creates a from a . + + An positioned at the token to read into this . + The used to load the JSON. + If this is null, default load settings will be used. + + A that contains the token and its descendant tokens that were read from the reader. The runtime type of the token is determined by the token type of the first token encountered in the reader. @@ -4759,54 +8007,96 @@ A that contains JSON. A populated from the string that contains JSON. + + + Load a from a string that contains JSON. + + A that contains JSON. + The used to load the JSON. + If this is null, default load settings will be used. + A populated from the string that contains JSON. + + + + Creates a from a . + + A positioned at the token to read into this . + The used to load the JSON. + If this is null, default load settings will be used. + + A that contains the token and its descendant tokens + that were read from the reader. The runtime type of the token is determined + by the token type of the first token encountered in the reader. + + Creates a from a . - An positioned at the token to read into this . + A positioned at the token to read into this . - An that contains the token and its descendant tokens + A that contains the token and its descendant tokens that were read from the reader. The runtime type of the token is determined by the token type of the first token encountered in the reader. - Selects a using a JPath expression. Selects the token that matches the object path. + Selects a using a JSONPath expression. Selects the token that matches the object path. - A that contains a JPath expression. + A that contains a JSONPath expression. - A , or null. + A , or null. - Selects a using a JPath expression. Selects the token that matches the object path. + Selects a using a JSONPath expression. Selects the token that matches the object path. - A that contains a JPath expression. + A that contains a JSONPath expression. A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression. A . - + - Selects a collection of elements using a JPath expression. + Selects a using a JSONPath expression. Selects the token that matches the object path. - A that contains a JPath expression. + A that contains a JSONPath expression. - An that contains the selected elements. + The used to select tokens. + A . + + + + Selects a collection of elements using a JSONPath expression. + + + A that contains a JSONPath expression. + + An of that contains the selected elements. - Selects a collection of elements using a JPath expression. + Selects a collection of elements using a JSONPath expression. - A that contains a JPath expression. + A that contains a JSONPath expression. A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression. - An that contains the selected elements. + An of that contains the selected elements. + + + + Selects a collection of elements using a JSONPath expression. + + + A that contains a JSONPath expression. + + The used to select tokens. + An of that contains the selected elements. @@ -4832,1198 +8122,58 @@ A new instance of the . - + - Gets a comparer that can compare two tokens for value equality. + Creates a new instance of the . All child tokens are recursively cloned. - A that can compare two nodes for value equality. + A object to configure cloning settings. + A new instance of the . - + - Gets or sets the parent. + Adds an object to the annotation list of this . - The parent. + The annotation to add. - + - Gets the root of this . + Get the first annotation object of the specified type from this . - The root of this . + The type of the annotation to retrieve. + The first annotation object that matches the specified type, or null if no annotation is of the specified type. - + - Gets the node type for this . + Gets the first annotation object of the specified type from this . - The type. + The of the annotation to retrieve. + The first annotation object that matches the specified type, or null if no annotation is of the specified type. - + - Gets a value indicating whether this token has child tokens. + Gets a collection of annotations of the specified type for this . - - true if this token has child values; otherwise, false. - + The type of the annotations to retrieve. + An that contains the annotations for this . - + - Gets the next sibling token of this node. + Gets a collection of annotations of the specified type for this . - The that contains the next sibling token. + The of the annotations to retrieve. + An of that contains the annotations that match the specified type for this . - + - Gets the previous sibling token of this node. + Removes the annotations of the specified type from this . - The that contains the previous sibling token. + The type of annotations to remove. - + - Gets the path of the JSON token. + Removes the annotations of the specified type from this . - - - - Gets the with the specified key. - - The with the specified key. - - - - Get the first child token of this token. - - A containing the first child token of the . - - - - Get the last child token of this token. - - A containing the last child token of the . - - - - Raises the event. - - The instance containing the event data. - - - - Raises the event. - - The instance containing the event data. - - - - Raises the event. - - The instance containing the event data. - - - - Returns a collection of the child tokens of this token, in document order. - - - An of containing the child tokens of this , in document order. - - - - - Returns a collection of the child values of this token, in document order. - - The type to convert the values to. - - A containing the child values of this , in document order. - - - - - Returns a collection of the descendant tokens for this token in document order. - - An containing the descendant tokens of the . - - - - Adds the specified content as children of this . - - The content to be added. - - - - Adds the specified content as the first children of this . - - The content to be added. - - - - Creates an that can be used to add tokens to the . - - An that is ready to have content written to it. - - - - Replaces the children nodes of this token with the specified content. - - The content. - - - - Removes the child nodes from this token. - - - - - Occurs when the list changes or an item in the list changes. - - - - - Occurs before an item is added to the collection. - - - - - Occurs when the items list of the collection has changed, or the collection is reset. - - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Gets a value indicating whether this token has child tokens. - - - true if this token has child values; otherwise, false. - - - - - Get the first child token of this token. - - - A containing the first child token of the . - - - - - Get the last child token of this token. - - - A containing the last child token of the . - - - - - Gets the count of child JSON tokens. - - The count of child JSON tokens - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class with the specified content. - - The contents of the array. - - - - Initializes a new instance of the class with the specified content. - - The contents of the array. - - - - Loads an from a . - - A that will be read for the content of the . - A that contains the JSON that was read from the specified . - - - - Load a from a string that contains JSON. - - A that contains JSON. - A populated from the string that contains JSON. - - - - - - - Creates a from an object. - - The object that will be used to create . - A with the values of the specified object - - - - Creates a from an object. - - The object that will be used to create . - The that will be used to read the object. - A with the values of the specified object - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Determines the index of a specific item in the . - - The object to locate in the . - - The index of if found in the list; otherwise, -1. - - - - - Inserts an item to the at the specified index. - - The zero-based index at which should be inserted. - The object to insert into the . - - is not a valid index in the . - The is read-only. - - - - Removes the item at the specified index. - - The zero-based index of the item to remove. - - is not a valid index in the . - The is read-only. - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - - - - Adds an item to the . - - The object to add to the . - The is read-only. - - - - Removes all items from the . - - The is read-only. - - - - Determines whether the contains a specific value. - - The object to locate in the . - - true if is found in the ; otherwise, false. - - - - - Copies to. - - The array. - Index of the array. - - - - Removes the first occurrence of a specific object from the . - - The object to remove from the . - - true if was successfully removed from the ; otherwise, false. This method also returns false if is not found in the original . - - The is read-only. - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Gets the node type for this . - - The type. - - - - Gets the with the specified key. - - The with the specified key. - - - - Gets or sets the at the specified index. - - - - - - Gets a value indicating whether the is read-only. - - true if the is read-only; otherwise, false. - - - - Represents a JSON constructor. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class with the specified name and content. - - The constructor name. - The contents of the constructor. - - - - Initializes a new instance of the class with the specified name and content. - - The constructor name. - The contents of the constructor. - - - - Initializes a new instance of the class with the specified name. - - The constructor name. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Loads an from a . - - A that will be read for the content of the . - A that contains the JSON that was read from the specified . - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Gets or sets the name of this constructor. - - The constructor name. - - - - Gets the node type for this . - - The type. - - - - Gets the with the specified key. - - The with the specified key. - - - - Represents a collection of objects. - - The type of token - - - - An empty collection of objects. - - - - - Initializes a new instance of the struct. - - The enumerable. - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - - - - Determines whether the specified is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - - - Returns a hash code for this instance. - - - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - - - - - Gets the with the specified key. - - - - - - Represents a JSON object. - - - - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class with the specified content. - - The contents of the object. - - - - Initializes a new instance of the class with the specified content. - - The contents of the object. - - - - Gets an of this object's properties. - - An of this object's properties. - - - - Gets a the specified name. - - The property name. - A with the specified name or null. - - - - Gets an of this object's property values. - - An of this object's property values. - - - - Loads an from a . - - A that will be read for the content of the . - A that contains the JSON that was read from the specified . - - - - Load a from a string that contains JSON. - - A that contains JSON. - A populated from the string that contains JSON. - - - - - - - Creates a from an object. - - The object that will be used to create . - A with the values of the specified object - - - - Creates a from an object. - - The object that will be used to create . - The that will be used to read the object. - A with the values of the specified object - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Gets the with the specified property name. - - Name of the property. - The with the specified property name. - - - - Gets the with the specified property name. - The exact property name will be searched for first and if no matching property is found then - the will be used to match a property. - - Name of the property. - One of the enumeration values that specifies how the strings will be compared. - The with the specified property name. - - - - Tries to get the with the specified property name. - The exact property name will be searched for first and if no matching property is found then - the will be used to match a property. - - Name of the property. - The value. - One of the enumeration values that specifies how the strings will be compared. - true if a value was successfully retrieved; otherwise, false. - - - - Adds the specified property name. - - Name of the property. - The value. - - - - Removes the property with the specified name. - - Name of the property. - true if item was successfully removed; otherwise, false. - - - - Tries the get value. - - Name of the property. - The value. - true if a value was successfully retrieved; otherwise, false. - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - - - - Raises the event with the provided arguments. - - Name of the property. - - - - Raises the event with the provided arguments. - - Name of the property. - - - - Returns the properties for this instance of a component. - - - A that represents the properties for this component instance. - - - - - Returns the properties for this instance of a component using the attribute array as a filter. - - An array of type that is used as a filter. - - A that represents the filtered properties for this component instance. - - - - - Returns a collection of custom attributes for this instance of a component. - - - An containing the attributes for this object. - - - - - Returns the class name of this instance of a component. - - - The class name of the object, or null if the class does not have a name. - - - - - Returns the name of this instance of a component. - - - The name of the object, or null if the object does not have a name. - - - - - Returns a type converter for this instance of a component. - - - A that is the converter for this object, or null if there is no for this object. - - - - - Returns the default event for this instance of a component. - - - An that represents the default event for this object, or null if this object does not have events. - - - - - Returns the default property for this instance of a component. - - - A that represents the default property for this object, or null if this object does not have properties. - - - - - Returns an editor of the specified type for this instance of a component. - - A that represents the editor for this object. - - An of the specified type that is the editor for this object, or null if the editor cannot be found. - - - - - Returns the events for this instance of a component using the specified attribute array as a filter. - - An array of type that is used as a filter. - - An that represents the filtered events for this component instance. - - - - - Returns the events for this instance of a component. - - - An that represents the events for this component instance. - - - - - Returns an object that contains the property described by the specified property descriptor. - - A that represents the property whose owner is to be found. - - An that represents the owner of the specified property. - - - - - Returns the responsible for binding operations performed on this object. - - The expression tree representation of the runtime value. - - The to bind this object. - - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Occurs when a property value changes. - - - - - Occurs when a property value is changing. - - - - - Gets the node type for this . - - The type. - - - - Gets the with the specified key. - - The with the specified key. - - - - Gets or sets the with the specified property name. - - - - - - Represents a JSON property. - - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class. - - The property name. - The property content. - - - - Initializes a new instance of the class. - - The property name. - The property content. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Loads an from a . - - A that will be read for the content of the . - A that contains the JSON that was read from the specified . - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Gets the property name. - - The property name. - - - - Gets or sets the property value. - - The property value. - - - - Gets the node type for this . - - The type. - - - - Represents a view of a . - - - - - Initializes a new instance of the class. - - The name. - - - - When overridden in a derived class, returns whether resetting an object changes its value. - - - true if resetting the component changes its value; otherwise, false. - - The component to test for reset capability. - - - - - When overridden in a derived class, gets the current value of the property on a component. - - - The value of a property for a given component. - - The component with the property for which to retrieve the value. - - - - - When overridden in a derived class, resets the value for this property of the component to the default value. - - The component with the property value that is to be reset to the default value. - - - - - When overridden in a derived class, sets the value of the component to a different value. - - The component with the property value that is to be set. - The new value. - - - - - When overridden in a derived class, determines a value indicating whether the value of this property needs to be persisted. - - - true if the property should be persisted; otherwise, false. - - The component with the property to be examined for persistence. - - - - - When overridden in a derived class, gets the type of the component this property is bound to. - - - A that represents the type of component this property is bound to. When the or methods are invoked, the object specified might be an instance of this type. - - - - - When overridden in a derived class, gets a value indicating whether this property is read-only. - - - true if the property is read-only; otherwise, false. - - - - - When overridden in a derived class, gets the type of the property. - - - A that represents the type of the property. - - - - - Gets the hash code for the name of the member. - - - - The hash code for the name of the member. - - - - - Represents a raw JSON string. - - - - - Represents a value in JSON (string, integer, date, etc). - - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Creates a comment with the given value. - - The value. - A comment with the given value. - - - - Creates a string with the given value. - - The value. - A string with the given value. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Indicates whether the current object is equal to another object of the same type. - - - true if the current object is equal to the parameter; otherwise, false. - - An object to compare with this object. - - - - Determines whether the specified is equal to the current . - - The to compare with the current . - - true if the specified is equal to the current ; otherwise, false. - - - The parameter is null. - - - - - Serves as a hash function for a particular type. - - - A hash code for the current . - - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Returns a that represents this instance. - - The format. - - A that represents this instance. - - - - - Returns a that represents this instance. - - The format provider. - - A that represents this instance. - - - - - Returns a that represents this instance. - - The format. - The format provider. - - A that represents this instance. - - - - - Returns the responsible for binding operations performed on this object. - - The expression tree representation of the runtime value. - - The to bind this object. - - - - - Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. - - An object to compare with this instance. - - A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has these meanings: - Value - Meaning - Less than zero - This instance is less than . - Zero - This instance is equal to . - Greater than zero - This instance is greater than . - - - is not the same type as this instance. - - - - - Gets a value indicating whether this token has child tokens. - - - true if this token has child values; otherwise, false. - - - - - Gets the node type for this . - - The type. - - - - Gets or sets the underlying token value. - - The underlying token value. - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class. - - The raw json. - - - - Creates an instance of with the content of the reader's current token. - - The reader. - An instance of with the content of the reader's current token. + The of annotations to remove. @@ -6037,7 +8187,7 @@ The first object of type to compare. The second object of type to compare. - true if the specified objects are equal; otherwise, false. + true if the specified objects are equal; otherwise, false. @@ -6046,11 +8196,16 @@ The for which a hash code is to be returned. A hash code for the specified object. - The type of is a reference type and is null. + The type of is a reference type and is null. - Represents a reader that provides fast, non-cached, forward-only access to serialized Json data. + Represents a reader that provides fast, non-cached, forward-only access to serialized JSON data. + + + + + Gets the at the reader's current position. @@ -6059,52 +8214,26 @@ The token to read from. - + - Reads the next JSON token from the stream as a . + Initializes a new instance of the class. - - A or a null reference if the next JSON token is null. This method will return null at the end of an array. - - - - - Reads the next JSON token from the stream as a . - - A . This method will return null at the end of an array. - - - - Reads the next JSON token from the stream as a . - - A . This method will return null at the end of an array. - - - - Reads the next JSON token from the stream as a . - - A . This method will return null at the end of an array. - - - - Reads the next JSON token from the stream as a . - - A . This method will return null at the end of an array. - - - - Reads the next JSON token from the stream as a . - - A . This method will return null at the end of an array. + The token to read from. + The initial path of the token. It is prepended to the returned . - Reads the next JSON token from the stream. + Reads the next JSON token from the underlying . - true if the next token was read successfully; false if there are no more tokens to read. + true if the next token was read successfully; false if there are no more tokens to read. + + + Gets the path of the current JSON token. + + Specifies the type of token. @@ -6202,9 +8331,20 @@ - Represents a writer that provides a fast, non-cached, forward-only way of generating Json data. + Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data. + + + Gets the at the writer's current position. + + + + + Gets the token being written. + + The token being written. + Initializes a new instance of the class writing to the given . @@ -6218,22 +8358,26 @@ - Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream. + Flushes whatever is in the buffer to the underlying . - Closes this stream and the underlying stream. + Closes this writer. + If is set to true, the JSON is auto-completed. + + Setting to true has no additional effect, since the underlying is a type that cannot be closed. + - Writes the beginning of a Json object. + Writes the beginning of a JSON object. - Writes the beginning of a Json array. + Writes the beginning of a JSON array. @@ -6250,14 +8394,14 @@ - Writes the property name of a name/value pair on a Json object. + Writes the property name of a name/value pair on a JSON object. The name of the property. Writes a value. - An error will raised if the value cannot be written as a single JSON token. + An error will be raised if the value cannot be written as a single JSON token. The value to write. @@ -6279,7 +8423,7 @@ - Writes out a comment /*...*/ containing the specified text. + Writes a comment /*...*/ containing the specified text. Text to place inside the comment. @@ -6381,9 +8525,9 @@ - Writes a value. + Writes a [] value. - The value to write. + The [] value to write. @@ -6403,11 +8547,304 @@ The value to write. - + - Gets the token being writen. + Represents a value in JSON (string, integer, date, etc). + + + + + Writes this token to a asynchronously. + + A into which this method will write. + The token to monitor for cancellation requests. + A collection of which will be used when writing the token. + A that represents the asynchronous write operation. + + + + Initializes a new instance of the class from another object. + + A object to copy from. + + + + Initializes a new instance of the class with the given value. + + The value. + + + + Initializes a new instance of the class with the given value. + + The value. + + + + Initializes a new instance of the class with the given value. + + The value. + + + + Initializes a new instance of the class with the given value. + + The value. + + + + Initializes a new instance of the class with the given value. + + The value. + + + + Initializes a new instance of the class with the given value. + + The value. + + + + Initializes a new instance of the class with the given value. + + The value. + + + + Initializes a new instance of the class with the given value. + + The value. + + + + Initializes a new instance of the class with the given value. + + The value. + + + + Initializes a new instance of the class with the given value. + + The value. + + + + Initializes a new instance of the class with the given value. + + The value. + + + + Initializes a new instance of the class with the given value. + + The value. + + + + Initializes a new instance of the class with the given value. + + The value. + + + + Initializes a new instance of the class with the given value. + + The value. + + + + Gets a value indicating whether this token has child tokens. + + + true if this token has child values; otherwise, false. + + + + + Creates a comment with the given value. + + The value. + A comment with the given value. + + + + Creates a string with the given value. + + The value. + A string with the given value. + + + + Creates a null value. + + A null value. + + + + Creates a undefined value. + + A undefined value. + + + + Gets the node type for this . + + The type. + + + + Gets or sets the underlying token value. + + The underlying token value. + + + + Writes this token to a . + + A into which this method will write. + A collection of s which will be used when writing the token. + + + + Indicates whether the current object is equal to another object of the same type. + + + true if the current object is equal to the parameter; otherwise, false. + + An object to compare with this object. + + + + Determines whether the specified is equal to the current . + + The to compare with the current . + + true if the specified is equal to the current ; otherwise, false. + + + + + Serves as a hash function for a particular type. + + + A hash code for the current . + + + + + Returns a that represents this instance. + + + ToString() returns a non-JSON string value for tokens with a type of . + If you want the JSON for all token types then you should use . + + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format. + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format provider. + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format. + The format provider. + + A that represents this instance. + + + + + Returns the responsible for binding operations performed on this object. + + The expression tree representation of the runtime value. + + The to bind this object. + + + + + Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. + + An object to compare with this instance. + + A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has these meanings: + Value + Meaning + Less than zero + This instance is less than . + Zero + This instance is equal to . + Greater than zero + This instance is greater than . + + + is not of the same type as this instance. + + + + + Specifies how line information is handled when loading JSON. + + + + + Ignore line information. + + + + + Load line information. + + + + + Specifies how JSON arrays are merged together. + + + + Concatenate arrays. + + + Union arrays, skipping items that already exist. + + + Replace all array items. + + + Merge array items together, matched by index. + + + + Specifies how null value properties are merged. + + + + + The content's null value properties will be ignored during merging. + + + + + The content's null value properties will be merged. - The token being writen. @@ -6422,7 +8859,7 @@ - Only members must be marked with or are serialized. + Only members marked with or are serialized. This member serialization mode can also be set by marking the class with . @@ -6430,7 +8867,27 @@ All public and private fields are serialized. Members can be excluded using or . This member serialization mode can also be set by marking the class with - and setting IgnoreSerializableAttribute on to false. + and setting IgnoreSerializableAttribute on to false. + + + + + Specifies metadata property handling options for the . + + + + + Read metadata properties located at the start of a JSON object. + + + + + Read metadata properties located anywhere in a JSON object. Note that this setting will impact performance. + + + + + Do not try to read metadata properties. @@ -6453,8 +8910,8 @@ Specifies null value handling options for the . - - + + @@ -6490,10 +8947,10 @@ Specifies reference handling options for the . - Note that references cannot be preserved when a value is set via a non-default constructor such as types that implement ISerializable. + Note that references cannot be preserved when a value is set via a non-default constructor such as types that implement . - + @@ -6556,14 +9013,29 @@ The property must be defined in JSON and cannot be a null value. + + + The property is not required but it cannot be a null value. + + + Contains the JSON schema extension methods. + + + JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. + + Determines whether the is valid. + + + JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. + The source to test. The schema to test with. @@ -6573,7 +9045,12 @@ + Determines whether the is valid. + + + JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. + The source to test. The schema to test with. @@ -6584,14 +9061,24 @@ + Validates the specified . + + + JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. + The source to test. The schema to test with. + Validates the specified . + + + JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. + The source to test. The schema to test with. @@ -6599,65 +9086,14 @@ + An in-memory representation of a JSON Schema. + + + JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. + - - - Initializes a new instance of the class. - - - - - Reads a from the specified . - - The containing the JSON Schema to read. - The object representing the JSON Schema. - - - - Reads a from the specified . - - The containing the JSON Schema to read. - The to use when resolving schema references. - The object representing the JSON Schema. - - - - Load a from a string that contains schema JSON. - - A that contains JSON. - A populated from the string that contains JSON. - - - - Parses the specified json. - - The json. - The resolver. - A populated from the string that contains JSON. - - - - Writes this schema to a . - - A into which this method will write. - - - - Writes this schema to a using the specified . - - A into which this method will write. - The resolver used. - - - - Returns a that represents the current . - - - A that represents the current . - - Gets or sets the id. @@ -6675,7 +9111,7 @@ - Gets or sets whether the object is read only. + Gets or sets whether the object is read-only. @@ -6719,9 +9155,9 @@ - Gets or sets a number that the value should be divisble by. + Gets or sets a number that the value should be divisible by. - A number that the value should be divisble by. + A number that the value should be divisible by. @@ -6737,15 +9173,15 @@ - Gets or sets a flag indicating whether the value can not equal the number defined by the "minimum" attribute. + Gets or sets a flag indicating whether the value can not equal the number defined by the minimum attribute (). - A flag indicating whether the value can not equal the number defined by the "minimum" attribute. + A flag indicating whether the value can not equal the number defined by the minimum attribute (). - Gets or sets a flag indicating whether the value can not equal the number defined by the "maximum" attribute. + Gets or sets a flag indicating whether the value can not equal the number defined by the maximum attribute (). - A flag indicating whether the value can not equal the number defined by the "maximum" attribute. + A flag indicating whether the value can not equal the number defined by the maximum attribute (). @@ -6834,7 +9270,7 @@ Gets or sets disallowed types. - The disallow types. + The disallowed types. @@ -6854,40 +9290,72 @@ The format. + + + Initializes a new instance of the class. + + + + + Reads a from the specified . + + The containing the JSON Schema to read. + The object representing the JSON Schema. + + + + Reads a from the specified . + + The containing the JSON Schema to read. + The to use when resolving schema references. + The object representing the JSON Schema. + + + + Load a from a string that contains JSON Schema. + + A that contains JSON Schema. + A populated from the string that contains JSON Schema. + + + + Load a from a string that contains JSON Schema using the specified . + + A that contains JSON Schema. + The resolver. + A populated from the string that contains JSON Schema. + + + + Writes this schema to a . + + A into which this method will write. + + + + Writes this schema to a using the specified . + + A into which this method will write. + The resolver used. + + + + Returns a that represents the current . + + + A that represents the current . + + + Returns detailed information about the schema exception. + + + JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. + - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with a specified error message. - - The error message that explains the reason for the exception. - - - - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. - - - - Initializes a new instance of the class. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). - Gets the line number indicating where the error occurred. @@ -6906,11 +9374,56 @@ The path to the JSON where the error occurred. + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class + with a specified error message. + + The error message that explains the reason for the exception. + + + + Initializes a new instance of the class + with a specified error message and a reference to the inner exception that is the cause of this exception. + + The error message that explains the reason for the exception. + The exception that is the cause of the current exception, or null if no inner exception is specified. + + + + Initializes a new instance of the class. + + The that holds the serialized object data about the exception being thrown. + The that contains contextual information about the source or destination. + The parameter is null. + The class name is null or is zero (0). + + Generates a from a specified . + + + JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. + + + + Gets or sets how undefined schemas are handled by the serializer. + + + + + Gets or sets the contract resolver. + + The contract resolver. + Generate a from the specified type. @@ -6943,22 +9456,22 @@ Specify whether the generated root will be nullable. A generated from the specified type. - - - Gets or sets how undefined schemas are handled by the serializer. - - - - - Gets or sets the contract resolver. - - The contract resolver. - + Resolves from an id. + + + JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. + + + + Gets or sets the loaded schemas. + + The loaded schemas. + Initializes a new instance of the class. @@ -6971,15 +9484,14 @@ The id. A for the specified reference. - - - Gets or sets the loaded schemas. - - The loaded schemas. - + The value types allowed by the . + + + JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. + @@ -7029,7 +9541,12 @@ + Specifies undefined schema Id handling options for the . + + + JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. + @@ -7049,7 +9566,12 @@ + Returns detailed information related to the . + + + JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. + @@ -7072,51 +9594,146 @@ + Represents the callback method that will handle JSON schema validation events and the . + + + JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. + + + + A camel case naming strategy. + + + + + Initializes a new instance of the class. + + + A flag indicating whether dictionary keys should be processed. + + + A flag indicating whether explicitly specified property names should be processed, + e.g. a property name customized with a . + + + + + Initializes a new instance of the class. + + + A flag indicating whether dictionary keys should be processed. + + + A flag indicating whether explicitly specified property names should be processed, + e.g. a property name customized with a . + + + A flag indicating whether extension data names should be processed. + + + + + Initializes a new instance of the class. + + + + + Resolves the specified property name. + + The property name to resolve. + The resolved property name. + Resolves member mappings for a type, camel casing property names. - + - Used by to resolves a for a given . + Initializes a new instance of the class. - - - Used by to resolves a for a given . - - - - - - - + Resolves the contract for a given type. The type to resolve a contract for. The contract for a given type. + + + Used by to resolve a for a given . + + + + + Gets a value indicating whether members are being get and set using dynamic code generation. + This value is determined by the runtime permissions available. + + + true if using dynamic code generation; otherwise, false. + + + + + Gets or sets the default members search flags. + + The default members search flags. + + + + Gets or sets a value indicating whether compiler generated members should be serialized. + + + true if serialized compiler generated members; otherwise, false. + + + + + Gets or sets a value indicating whether to ignore the interface when serializing and deserializing types. + + + true if the interface will be ignored when serializing and deserializing types; otherwise, false. + + + + + Gets or sets a value indicating whether to ignore the attribute when serializing and deserializing types. + + + true if the attribute will be ignored when serializing and deserializing types; otherwise, false. + + + + + Gets or sets a value indicating whether to ignore IsSpecified members when serializing and deserializing types. + + + true if the IsSpecified members will be ignored when serializing and deserializing types; otherwise, false. + + + + + Gets or sets a value indicating whether to ignore ShouldSerialize members when serializing and deserializing types. + + + true if the ShouldSerialize members will be ignored when serializing and deserializing types; otherwise, false. + + + + + Gets or sets the naming strategy used to resolve how property names and dictionary keys are serialized. + + The naming strategy used to resolve how property names and dictionary keys are serialized. + Initializes a new instance of the class. - - - Initializes a new instance of the class. - - - If set to true the will use a cached shared with other resolvers of the same type. - Sharing the cache will significantly performance because expensive reflection will only happen once but could cause unexpected - behavior if different instances of the resolver are suppose to produce different results. When set to false it is highly - recommended to reuse instances with the . - - Resolves the contract for a given type. @@ -7156,10 +9773,10 @@ - Resolves the default for the contract. + Resolves the default for the contract. Type of the object. - The contract's default . + The contract's default . @@ -7245,7 +9862,21 @@ Resolves the name of the property. Name of the property. - Name of the property. + Resolved name of the property. + + + + Resolves the name of the extension data. By default no changes are made to extension data names. + + Name of the extension data. + Resolved name of the extension data. + + + + Resolves the key of the dictionary. By default is used to resolve dictionary keys. + + Key of the dictionary. + Resolved key of the dictionary. @@ -7254,101 +9885,28 @@ Name of the property. Name of the property. - + - Gets a value indicating whether members are being get and set using dynamic code generation. - This value is determined by the runtime permissions available. - - - true if using dynamic code generation; otherwise, false. - - - - - Gets or sets the default members search flags. - - The default members search flags. - - - - Gets or sets a value indicating whether compiler generated members should be serialized. - - - true if serialized compiler generated members; otherwise, false. - - - - - Gets or sets a value indicating whether to ignore the interface when serializing and deserializing types. - - - true if the interface will be ignored when serializing and deserializing types; otherwise, false. - - - - - Gets or sets a value indicating whether to ignore the attribute when serializing and deserializing types. - - - true if the attribute will be ignored when serializing and deserializing types; otherwise, false. - - - - - Initializes a new instance of the class. + The default naming strategy. Property names and dictionary keys are unchanged. - + - Resolves the name of the property. + Resolves the specified property name. - Name of the property. - The property name camel cased. - - - - Used to resolve references when serializing and deserializing JSON by the . - - - - - Resolves a reference to its object. - - The serialization context. - The reference to resolve. - The object that - - - - Gets the reference for the sepecified object. - - The serialization context. - The object to get a reference for. - The reference to the object. - - - - Determines whether the specified object is referenced. - - The serialization context. - The object to test for a reference. - - true if the specified object is referenced; otherwise, false. - - - - - Adds a reference to the specified object. - - The serialization context. - The reference. - The object to reference. + The property name to resolve. + The resolved property name. The default serialization binder used when resolving and loading classes from type names. + + + Initializes a new instance of the class. + + When overridden in a derived class, controls the binding of a serialized object to a type. @@ -7364,34 +9922,23 @@ When overridden in a derived class, controls the binding of a serialized object to a type. The type of the object the formatter creates a new instance of. - Specifies the name of the serialized object. - Specifies the name of the serialized object. + Specifies the name of the serialized object. + Specifies the name of the serialized object. Represents a trace writer that writes to the application's instances. - - - Represents a trace writer. - - - - - Writes the specified trace level, message and optional exception. - - The at which to write this trace. - The trace message. - The trace exception. This parameter is optional. - - + Gets the that will be used to filter the trace messages passed to the writer. - For example a filter level of Info will exclude Verbose messages and include Info, - Warning and Error messages. + For example a filter level of will exclude messages and include , + and messages. - The that will be used to filter the trace messages passed to the writer. + + The that will be used to filter the trace messages passed to the writer. + @@ -7401,40 +9948,11 @@ The trace message. The trace exception. This parameter is optional. - - - Gets the that will be used to filter the trace messages passed to the writer. - For example a filter level of Info will exclude Verbose messages and include Info, - Warning and Error messages. - - - The that will be used to filter the trace messages passed to the writer. - - Get and set values for a using dynamic methods. - - - Provides methods to get and set values. - - - - - Sets the value. - - The target to set the value on. - The value to set on the target. - - - - Gets the value. - - The target to get the value from. - The value. - Initializes a new instance of the class. @@ -7495,13 +10013,6 @@ Provides data for the Error event. - - - Initializes a new instance of the class. - - The current object. - The error context. - Gets the current object the error event is being raised against. @@ -7514,6 +10025,13 @@ The error context. + + + Initializes a new instance of the class. + + The current object. + The error context. + Get and set values for a using dynamic methods. @@ -7539,16 +10057,241 @@ The target to get the value from. The value. + + + Provides methods to get attributes. + + + + + Returns a collection of all of the attributes, or an empty collection if there are no attributes. + + When true, look up the hierarchy chain for the inherited custom attribute. + A collection of s, or an empty collection. + + + + Returns a collection of attributes, identified by type, or an empty collection if there are no attributes. + + The type of the attributes. + When true, look up the hierarchy chain for the inherited custom attribute. + A collection of s, or an empty collection. + + + + Used by to resolve a for a given . + + + + + + + + + Resolves the contract for a given type. + + The type to resolve a contract for. + The contract for a given type. + + + + Used to resolve references when serializing and deserializing JSON by the . + + + + + Resolves a reference to its object. + + The serialization context. + The reference to resolve. + The object that was resolved from the reference. + + + + Gets the reference for the specified object. + + The serialization context. + The object to get a reference for. + The reference to the object. + + + + Determines whether the specified object is referenced. + + The serialization context. + The object to test for a reference. + + true if the specified object is referenced; otherwise, false. + + + + + Adds a reference to the specified object. + + The serialization context. + The reference. + The object to reference. + + + + Allows users to control class loading and mandate what class to load. + + + + + When implemented, controls the binding of a serialized object to a type. + + Specifies the name of the serialized object. + Specifies the name of the serialized object + The type of the object the formatter creates a new instance of. + + + + When implemented, controls the binding of a serialized object to a type. + + The type of the object the formatter creates a new instance of. + Specifies the name of the serialized object. + Specifies the name of the serialized object. + + + + Represents a trace writer. + + + + + Gets the that will be used to filter the trace messages passed to the writer. + For example a filter level of will exclude messages and include , + and messages. + + The that will be used to filter the trace messages passed to the writer. + + + + Writes the specified trace level, message and optional exception. + + The at which to write this trace. + The trace message. + The trace exception. This parameter is optional. + + + + Provides methods to get and set values. + + + + + Sets the value. + + The target to set the value on. + The value to set on the target. + + + + Gets the value. + + The target to get the value from. + The value. + Contract details for a used by the . + + + Gets the of the collection items. + + The of the collection items. + + + + Gets a value indicating whether the collection type is a multidimensional array. + + true if the collection type is a multidimensional array; otherwise, false. + + + + Gets or sets the function used to create the object. When set this function will override . + + The function used to create the object. + + + + Gets a value indicating whether the creator has a parameter with the collection values. + + true if the creator has a parameter with the collection values; otherwise, false. + + + + Initializes a new instance of the class. + + The underlying type for the contract. + Contract details for a used by the . + + + Gets or sets the default collection items . + + The converter. + + + + Gets or sets a value indicating whether the collection items preserve object references. + + true if collection items preserve object references; otherwise, false. + + + + Gets or sets the collection item reference loop handling. + + The reference loop handling. + + + + Gets or sets the collection item type name handling. + + The type name handling. + + + + Initializes a new instance of the class. + + The underlying type for the contract. + + + + Handles serialization callback events. + + The object that raised the callback event. + The streaming context. + + + + Handles serialization error callback events. + + The object that raised the callback event. + The streaming context. + The error context. + + + + Sets extension data for an object during deserialization. + + The object to set extension data on. + The extension data key. + The extension data value. + + + + Gets extension data for an object during serialization. + + The object to set extension data on. + Contract details for a used by the . @@ -7574,10 +10317,17 @@ - Gets or sets the default for this contract. + Gets or sets the default for this contract. The converter. + + + Gets the internally resolved for the contract's type. + This converter is used as a fallback converter when no other converter is resolved. + Setting will always override this converter. + + Gets or sets all methods called immediately after deserialization of the object. @@ -7608,36 +10358,6 @@ The methods called when an error is thrown during the serialization of the object. - - - Gets or sets the method called immediately after deserialization of the object. - - The method called immediately after deserialization of the object. - - - - Gets or sets the method called during deserialization of the object. - - The method called during deserialization of the object. - - - - Gets or sets the method called after serialization of the object graph. - - The method called after serialization of the object graph. - - - - Gets or sets the method called before serialization of the object. - - The method called before serialization of the object. - - - - Gets or sets the method called when an error is thrown during the serialization of the object. - - The method called when an error is thrown during the serialization of the object. - Gets or sets the default creator method used to create the object. @@ -7646,103 +10366,20 @@ - Gets or sets a value indicating whether the default creator is non public. + Gets or sets a value indicating whether the default creator is non-public. true if the default object creator is non-public; otherwise, false. - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Gets or sets the default collection items . - - The converter. - - - - Gets or sets a value indicating whether the collection items preserve object references. - - true if collection items preserve object references; otherwise, false. - - - - Gets or sets the collection item reference loop handling. - - The reference loop handling. - - - - Gets or sets the collection item type name handling. - - The type name handling. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Gets the of the collection items. - - The of the collection items. - - - - Gets a value indicating whether the collection type is a multidimensional array. - - true if the collection type is a multidimensional array; otherwise, false. - - - - Handles serialization callback events. - - The object that raised the callback event. - The streaming context. - - - - Handles serialization error callback events. - - The object that raised the callback event. - The streaming context. - The error context. - - - - Sets extension data for an object during deserialization. - - The object to set extension data on. - The extension data key. - The extension data value. - - - - Gets extension data for an object during serialization. - - The object to set extension data on. - Contract details for a used by the . - + - Initializes a new instance of the class. + Gets or sets the dictionary key resolver. - The underlying type for the contract. - - - - Gets or sets the property name resolver. - - The property name resolver. + The dictionary key resolver. @@ -7756,17 +10393,29 @@ The of the dictionary values. + + + Gets or sets the function used to create the object. When set this function will override . + + The function used to create the object. + + + + Gets a value indicating whether the creator has a parameter with the dictionary values. + + true if the creator has a parameter with the dictionary values; otherwise, false. + + + + Initializes a new instance of the class. + + The underlying type for the contract. + Contract details for a used by the . - - - Initializes a new instance of the class. - - The underlying type for the contract. - Gets the object's properties. @@ -7779,23 +10428,29 @@ The property name resolver. + + + Initializes a new instance of the class. + + The underlying type for the contract. + Contract details for a used by the . + + + Gets or sets the object constructor. + + The object constructor. + Initializes a new instance of the class. The underlying type for the contract. - - - Gets or sets the ISerializable object constructor. - - The ISerializable object constructor. - Contract details for a used by the . @@ -7812,18 +10467,18 @@ Contract details for a used by the . - - - Initializes a new instance of the class. - - The underlying type for the contract. - Gets or sets the object member serialization. The member object serialization. + + + Gets or sets the missing member handling used when deserializing this object. + + The missing member handling. + Gets or sets a value that indicates whether the object's properties are required. @@ -7832,30 +10487,29 @@ A value indicating whether the object's properties are required. + + + Gets or sets how the object's properties with null values are handled during serialization and deserialization. + + How the object's properties with null values are handled during serialization and deserialization. + Gets the object's properties. The object's properties. - + - Gets the constructor parameters required for any non-default constructor + Gets a collection of instances that define the parameters used with . - + - Gets or sets the override constructor used to create the object. - This is set when a constructor is marked up using the - JsonConstructor attribute. + Gets or sets the function used to create the object. When set this function will override . + This function is called with a collection of arguments which are defined by the collection. - The override constructor. - - - - Gets or sets the parametrized constructor used to create the object. - - The parametrized constructor. + The function used to create the object. @@ -7867,6 +10521,23 @@ Gets or sets the extension data getter. + + + Gets or sets the extension data value type. + + + + + Gets or sets the extension data name resolver. + + The extension data name resolver. + + + + Initializes a new instance of the class. + + The underlying type for the contract. + Contract details for a used by the . @@ -7883,14 +10554,6 @@ Maps a JSON property to a .NET member or constructor parameter. - - - Returns a that represents this instance. - - - A that represents this instance. - - Gets or sets the name of the property. @@ -7905,9 +10568,9 @@ - Gets or sets the order of serialization and deserialization of a member. + Gets or sets the order of serialization of a member. - The numeric order of serialization or deserialization. + The numeric order of serialization. @@ -7921,6 +10584,12 @@ The that will get and set the during serialization. + + + Gets or sets the for this property. + + The for this property. + Gets or sets the type of the property. @@ -7929,8 +10598,8 @@ - Gets or sets the for the property. - If set this converter takes presidence over the contract converter for the property type. + Gets or sets the for the property. + If set this converter takes precedence over the contract converter for the property type. The converter. @@ -7976,6 +10645,11 @@ A value indicating whether this is required. + + + Gets a value indicating whether has a value specified. + + Gets or sets a value indicating whether this property preserves object references. @@ -8016,9 +10690,15 @@ - Gets or sets a predicate used to determine whether the property should be serialize. + Gets or sets a predicate used to determine whether the property should be serialized. - A predicate used to determine whether the property should be serialize. + A predicate used to determine whether the property should be serialized. + + + + Gets or sets a predicate used to determine whether the property should be deserialized. + + A predicate used to determine whether the property should be deserialized. @@ -8032,6 +10712,14 @@ An action used to set whether the property has been deserialized. + + + Returns a that represents this instance. + + + A that represents this instance. + + Gets or sets the converter used when serializing the property's collection items. @@ -8046,13 +10734,13 @@ - Gets or sets the the type name handling used when serializing the property's collection items. + Gets or sets the type name handling used when serializing the property's collection items. The collection's items type name handling. - Gets or sets the the reference loop handling used when serializing the property's collection items. + Gets or sets the reference loop handling used when serializing the property's collection items. The collection's items reference loop handling. @@ -8083,7 +10771,7 @@ Gets the closest matching object. - First attempts to get an exact case match of propertyName and then + First attempts to get an exact case match of and then a case insensitive match. Name of the property. @@ -8108,12 +10796,74 @@ The underlying type for the contract. + + + Lookup and create an instance of the type described by the argument. + + The type to create. + Optional arguments to pass to an initializing constructor of the JsonConverter. + If null, the default constructor is used. + + + + A kebab case naming strategy. + + + + + Initializes a new instance of the class. + + + A flag indicating whether dictionary keys should be processed. + + + A flag indicating whether explicitly specified property names should be processed, + e.g. a property name customized with a . + + + + + Initializes a new instance of the class. + + + A flag indicating whether dictionary keys should be processed. + + + A flag indicating whether explicitly specified property names should be processed, + e.g. a property name customized with a . + + + A flag indicating whether extension data names should be processed. + + + + + Initializes a new instance of the class. + + + + + Resolves the specified property name. + + The property name to resolve. + The resolved property name. + Represents a trace writer that writes to memory. When the trace message limit is reached then old trace messages will be removed as new messages are added. + + + Gets the that will be used to filter the trace messages passed to the writer. + For example a filter level of will exclude messages and include , + and messages. + + + The that will be used to filter the trace messages passed to the writer. + + Initializes a new instance of the class. @@ -8141,15 +10891,78 @@ A of the most recent trace messages. - + - Gets the that will be used to filter the trace messages passed to the writer. - For example a filter level of Info will exclude Verbose messages and include Info, - Warning and Error messages. + A base class for resolving how property names and dictionary keys are serialized. - - The that will be used to filter the trace messages passed to the writer. - + + + + A flag indicating whether dictionary keys should be processed. + Defaults to false. + + + + + A flag indicating whether extension data names should be processed. + Defaults to false. + + + + + A flag indicating whether explicitly specified property names, + e.g. a property name customized with a , should be processed. + Defaults to false. + + + + + Gets the serialized name for a given property name. + + The initial property name. + A flag indicating whether the property has had a name explicitly specified. + The serialized property name. + + + + Gets the serialized name for a given extension data name. + + The initial extension data name. + The serialized extension data name. + + + + Gets the serialized key for a given dictionary key. + + The initial dictionary key. + The serialized dictionary key. + + + + Resolves the specified property name. + + The property name to resolve. + The resolved property name. + + + + Hash code calculation + + + + + + Object equality implementation + + + + + + + Compare to another NamingStrategy + + + @@ -8162,6 +10975,32 @@ When applied to a method, specifies that the method is called when an error occurs serializing an object. + + + Provides methods to get attributes from a , , or . + + + + + Initializes a new instance of the class. + + The instance to get attributes for. This parameter should be a , , or . + + + + Returns a collection of all of the attributes, or an empty collection if there are no attributes. + + When true, look up the hierarchy chain for the inherited custom attribute. + A collection of s, or an empty collection. + + + + Returns a collection of attributes, identified by type, or an empty collection if there are no attributes. + + The type of the attributes. + When true, look up the hierarchy chain for the inherited custom attribute. + A collection of s, or an empty collection. + Get and set values for a using reflection. @@ -8187,6 +11026,50 @@ The target to get the value from. The value. + + + A snake case naming strategy. + + + + + Initializes a new instance of the class. + + + A flag indicating whether dictionary keys should be processed. + + + A flag indicating whether explicitly specified property names should be processed, + e.g. a property name customized with a . + + + + + Initializes a new instance of the class. + + + A flag indicating whether dictionary keys should be processed. + + + A flag indicating whether explicitly specified property names should be processed, + e.g. a property name customized with a . + + + A flag indicating whether extension data names should be processed. + + + + + Initializes a new instance of the class. + + + + + Resolves the specified property name. + + The property name to resolve. + The resolved property name. + Specifies how strings are escaped when writing JSON text. @@ -8207,10 +11090,30 @@ HTML (<, >, &, ', ") and control characters (e.g. newline) are escaped. + + + Indicates the method that will be used during deserialization for locating and loading assemblies. + + + + + In simple mode, the assembly used during deserialization need not match exactly the assembly used during serialization. Specifically, the version numbers need not match as the LoadWithPartialName method of the class is used to load the assembly. + + + + + In full mode, the assembly used during deserialization must match exactly the assembly used during serialization. The Load method of the class is used to load the assembly. + + Specifies type name handling options for the . + + should be used with caution when your application deserializes JSON from an external source. + Incoming types should be validated with a custom + when deserializing with a value other than . + @@ -8235,55 +11138,27 @@ Include the .NET type name when the type of the object being serialized is not the same as its declared type. + Note that this doesn't include the root serialized object by default. To include the root object's type name in JSON + you must specify a root type object with + or . - Determines whether the collection is null or empty. + Determines whether the collection is null or empty. The collection. - true if the collection is null or empty; otherwise, false. + true if the collection is null or empty; otherwise, false. - Adds the elements of the specified collection to the specified generic IList. + Adds the elements of the specified collection to the specified generic . The list to add to. The collection of elements to add. - - - Returns the index of the first occurrence in a sequence by using a specified IEqualityComparer. - - The type of the elements of source. - A sequence in which to locate a value. - The object to locate in the sequence - An equality comparer to compare values. - The zero-based index of the first occurrence of value within the entire sequence, if found; otherwise, –1. - - - - Converts the value to the specified type. - - The value to convert. - The culture to use when converting. - The type to convert the value to. - The converted type. - - - - Converts the value to the specified type. - - The value to convert. - The culture to use when converting. - The type to convert the value to. - The converted value if the conversion was successful or the default value of T if it failed. - - true if initialValue was converted successfully; otherwise, false. - - Converts the value to the specified type. If the value is unable to be converted, the @@ -8297,13 +11172,13 @@ is returned if assignable to the target type. - + Helper method for generating a MetaObject which calls a specific method on Dynamic that returns a result - + Helper method for generating a MetaObject which calls a specific method on Dynamic, but uses one of the arguments for @@ -8323,18 +11198,12 @@ with a restriction limiting our type - + - Gets a dictionary of the names and values of an Enum type. + Helper class for serializing immutable collections. + Note that this is used by all builds, even those that don't support immutable collections, in case the DLL is GACed + https://github.com/JamesNK/Newtonsoft.Json/issues/652 - - - - - Gets a dictionary of the names and values of an Enum type. - - The enum type to get names and values for. - @@ -8350,15 +11219,6 @@ The member. The underlying type of the member. - - - Determines whether the member is an indexed property. - - The member. - - true if the member is an indexed property; otherwise, false. - - Determines whether the property is an indexed property. @@ -8407,25 +11267,18 @@ - Builds a string. Unlike StringBuilder this class lets you reuse it's internal buffer. + Builds a string. Unlike this class lets you reuse its internal buffer. - Determines whether the string is all white space. Empty string will return false. + Determines whether the string is all white space. Empty string will return false. The string to test whether it is all white space. true if the string is all white space; otherwise, false. - - - Nulls an empty string. - - The string. - Null if the string was null, otherwise the string unchanged. - Specifies the state of the . @@ -8435,12 +11288,12 @@ An exception has been thrown, which has left the in an invalid state. You may call the method to put the in the Closed state. - Any other method calls results in an being thrown. + Any other method calls result in an being thrown. - The method has been called. + The method has been called. @@ -8450,7 +11303,7 @@ - A array is being written. + An array is being written. @@ -8465,8 +11318,46 @@ - A write method has not been called. + A write method has not been called. + + Specifies that an output will not be null even if the corresponding type allows it. + + + Specifies that when a method returns , the parameter will not be null even if the corresponding type allows it. + + + Initializes the attribute with the specified return value condition. + + The return value condition. If the method returns this value, the associated parameter will not be null. + + + + Gets the return value condition. + + + Specifies that an output may be null even if the corresponding type disallows it. + + + Specifies that null is allowed as an input even if the corresponding type disallows it. + + + + Specifies that the method will not return if the associated Boolean parameter is passed the specified value. + + + + + Initializes a new instance of the class. + + + The condition parameter value. Code after the method will be considered unreachable by diagnostics if the argument to + the associated parameter matches this value. + + + + Gets the condition parameter value. + diff --git a/Bin/SiteCore.dll b/Bin/SiteCore.dll index 421ace5..0f8d435 100644 Binary files a/Bin/SiteCore.dll and b/Bin/SiteCore.dll differ diff --git a/Bin/SiteCore.pdb b/Bin/SiteCore.pdb index 2aab8f3..cf524c0 100644 Binary files a/Bin/SiteCore.pdb and b/Bin/SiteCore.pdb differ diff --git a/Bin/System.Configuration.ConfigurationManager.dll b/Bin/System.Configuration.ConfigurationManager.dll new file mode 100644 index 0000000..c5dbdae Binary files /dev/null and b/Bin/System.Configuration.ConfigurationManager.dll differ diff --git a/Bin/System.Configuration.ConfigurationManager.dll.refresh b/Bin/System.Configuration.ConfigurationManager.dll.refresh new file mode 100644 index 0000000..d6b3160 Binary files /dev/null and b/Bin/System.Configuration.ConfigurationManager.dll.refresh differ diff --git a/Bin/System.Data.SqlClient.dll b/Bin/System.Data.SqlClient.dll new file mode 100644 index 0000000..8275f13 Binary files /dev/null and b/Bin/System.Data.SqlClient.dll differ diff --git a/Bin/System.Data.SqlClient.dll.refresh b/Bin/System.Data.SqlClient.dll.refresh new file mode 100644 index 0000000..e00b465 Binary files /dev/null and b/Bin/System.Data.SqlClient.dll.refresh differ diff --git a/Bin/System.Drawing.Common.dll b/Bin/System.Drawing.Common.dll new file mode 100644 index 0000000..51a6c7b Binary files /dev/null and b/Bin/System.Drawing.Common.dll differ diff --git a/Bin/System.Drawing.Common.dll.refresh b/Bin/System.Drawing.Common.dll.refresh new file mode 100644 index 0000000..14bf40b Binary files /dev/null and b/Bin/System.Drawing.Common.dll.refresh differ diff --git a/Bin/System.IO.dll b/Bin/System.IO.dll new file mode 100644 index 0000000..c33120c Binary files /dev/null and b/Bin/System.IO.dll differ diff --git a/Bin/System.IO.dll.refresh b/Bin/System.IO.dll.refresh new file mode 100644 index 0000000..d3cc08c Binary files /dev/null and b/Bin/System.IO.dll.refresh differ diff --git a/Bin/System.Net.Http.dll b/Bin/System.Net.Http.dll new file mode 100644 index 0000000..899bf5e Binary files /dev/null and b/Bin/System.Net.Http.dll differ diff --git a/Bin/System.Net.Http.dll.refresh b/Bin/System.Net.Http.dll.refresh new file mode 100644 index 0000000..a07aac5 --- /dev/null +++ b/Bin/System.Net.Http.dll.refresh @@ -0,0 +1 @@ +packages\System.Net.Http.4.3.4\lib\net46\System.Net.Http.dll \ No newline at end of file diff --git a/Bin/System.Runtime.dll b/Bin/System.Runtime.dll new file mode 100644 index 0000000..3f12010 Binary files /dev/null and b/Bin/System.Runtime.dll differ diff --git a/Bin/System.Runtime.dll.refresh b/Bin/System.Runtime.dll.refresh new file mode 100644 index 0000000..75abb2f Binary files /dev/null and b/Bin/System.Runtime.dll.refresh differ diff --git a/Bin/System.Security.AccessControl.dll b/Bin/System.Security.AccessControl.dll new file mode 100644 index 0000000..9cec2a5 Binary files /dev/null and b/Bin/System.Security.AccessControl.dll differ diff --git a/Bin/System.Security.AccessControl.dll.refresh b/Bin/System.Security.AccessControl.dll.refresh new file mode 100644 index 0000000..4ec3fda Binary files /dev/null and b/Bin/System.Security.AccessControl.dll.refresh differ diff --git a/Bin/System.Security.Cryptography.Algorithms.dll b/Bin/System.Security.Cryptography.Algorithms.dll new file mode 100644 index 0000000..77d029e Binary files /dev/null and b/Bin/System.Security.Cryptography.Algorithms.dll differ diff --git a/Bin/System.Security.Cryptography.Algorithms.dll.refresh b/Bin/System.Security.Cryptography.Algorithms.dll.refresh new file mode 100644 index 0000000..e396163 Binary files /dev/null and b/Bin/System.Security.Cryptography.Algorithms.dll.refresh differ diff --git a/Bin/System.Security.Cryptography.Encoding.dll b/Bin/System.Security.Cryptography.Encoding.dll new file mode 100644 index 0000000..de1ec5e Binary files /dev/null and b/Bin/System.Security.Cryptography.Encoding.dll differ diff --git a/Bin/System.Security.Cryptography.Encoding.dll.refresh b/Bin/System.Security.Cryptography.Encoding.dll.refresh new file mode 100644 index 0000000..5254808 Binary files /dev/null and b/Bin/System.Security.Cryptography.Encoding.dll.refresh differ diff --git a/Bin/System.Security.Cryptography.Primitives.dll b/Bin/System.Security.Cryptography.Primitives.dll new file mode 100644 index 0000000..16b2446 Binary files /dev/null and b/Bin/System.Security.Cryptography.Primitives.dll differ diff --git a/Bin/System.Security.Cryptography.Primitives.dll.refresh b/Bin/System.Security.Cryptography.Primitives.dll.refresh new file mode 100644 index 0000000..4eec2ba Binary files /dev/null and b/Bin/System.Security.Cryptography.Primitives.dll.refresh differ diff --git a/Bin/System.Security.Cryptography.X509Certificates.dll b/Bin/System.Security.Cryptography.X509Certificates.dll new file mode 100644 index 0000000..3ecec41 Binary files /dev/null and b/Bin/System.Security.Cryptography.X509Certificates.dll differ diff --git a/Bin/System.Security.Cryptography.X509Certificates.dll.refresh b/Bin/System.Security.Cryptography.X509Certificates.dll.refresh new file mode 100644 index 0000000..c1dfa3e Binary files /dev/null and b/Bin/System.Security.Cryptography.X509Certificates.dll.refresh differ diff --git a/Bin/System.Security.Permissions.dll b/Bin/System.Security.Permissions.dll new file mode 100644 index 0000000..fbf7ac9 Binary files /dev/null and b/Bin/System.Security.Permissions.dll differ diff --git a/Bin/System.Security.Permissions.dll.refresh b/Bin/System.Security.Permissions.dll.refresh new file mode 100644 index 0000000..5e8dd72 Binary files /dev/null and b/Bin/System.Security.Permissions.dll.refresh differ diff --git a/Bin/System.Security.Principal.Windows.dll b/Bin/System.Security.Principal.Windows.dll new file mode 100644 index 0000000..8ac6617 Binary files /dev/null and b/Bin/System.Security.Principal.Windows.dll differ diff --git a/Bin/System.Security.Principal.Windows.dll.refresh b/Bin/System.Security.Principal.Windows.dll.refresh new file mode 100644 index 0000000..0721ef7 Binary files /dev/null and b/Bin/System.Security.Principal.Windows.dll.refresh differ diff --git a/Web.config b/Web.config index 33760bc..327c520 100644 --- a/Web.config +++ b/Web.config @@ -1,56 +1,57 @@ - + - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/copydownload.aspx.cs b/copydownload.aspx.cs index c4f1edb..cff99a9 100644 --- a/copydownload.aspx.cs +++ b/copydownload.aspx.cs @@ -54,7 +54,7 @@ public partial class copydownload : System.Web.UI.Page } tids = string.Join(",", tLst.ToArray()); StringBuilder sql = new StringBuilder(); - sql.AppendFormat("select ctid,seller_memo,FinishDesignTime,OrderState,SupplierName from view_erptradecell where orderstate=5 and ctid in ({0})", tids); + sql.AppendFormat("select ctid,seller_memo,FinishDesignTime,OrderState,SupplierName,OrderSn,tid from view_erptradecell where orderstate=5 and ctid in ({0})", tids); DataTable dt = CeErpTradeCell.ExecuteDataset(sql.ToString()).Tables[0]; if (dt == null || dt.Rows.Count < 1) { @@ -81,12 +81,23 @@ public partial class copydownload : System.Web.UI.Page dTime = getDesignTimeWithDay(dr["FinishDesignTime"]);//这个时间以后得按天分文件夹 } else - dTime = getDesignTime(dr["FinishDesignTime"]);//上传原来按月分文件夹 + { + dTime = getDesignTime(dr["FinishDesignTime"]);//上传原来按月分文件夹 + } + string tid = dr["tid"].ToString(); + string orderSn = dr["OrderSn"].ToString(); + string rname = ""; df_name = upPath + "\\" + dTime + "\\" + formatMemo(dr["seller_memo"]); foreach (string ext in extArr) { + if (!string.IsNullOrEmpty(tid) && !string.IsNullOrEmpty(orderSn)) + { + rname = formatMemo(dr["seller_memo"]).Replace(orderSn, tid); + rname = rname + "《" + orderSn + "》"; + } fname = df_name + ext; + rname = rname + ext; if (!hasFile) { if (File.Exists(fname)) @@ -103,7 +114,7 @@ public partial class copydownload : System.Web.UI.Page } hasFile = true; files.Add(fname); - copyFile(getDesignDate(dr["FinishDesignTime"]), dr["SupplierName"].ToString(), fname, payment); + copyFile(getDesignDate(dr["FinishDesignTime"]), dr["SupplierName"].ToString(), fname, payment, rname); fc++; } catch (Exception ex) @@ -264,7 +275,7 @@ public partial class copydownload : System.Web.UI.Page { "素芸", "棉卡" }, { "玉蕊", "蛋壳" } }; - private void copyFile(string date, string supplier, string file, double payment) + private void copyFile(string date, string supplier, string file, double payment, string rname) { string SupName = supplier; @@ -277,12 +288,13 @@ public partial class copydownload : System.Web.UI.Page string fname = Path.GetFileName(file); foreach (var rule in replaceRules) { - fname = fname.Replace(rule.Key, rule.Value); + rname = rname.Replace(rule.Key, rule.Value); } - File.Copy(file, path + "\\" + fname, true); - if (!File.Exists(path + "\\" + fname)) + + File.Copy(file, path + "\\" + rname, true); + if (!File.Exists(path + "\\" + rname)) { - File.Copy(file, path + "\\" + fname, true); + File.Copy(file, path + "\\" + rname, true); } diff --git a/packages.config b/packages.config index 940c945..ec63397 100644 --- a/packages.config +++ b/packages.config @@ -1,7 +1,30 @@  + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/supplierBuildFile.aspx b/supplierBuildFile.aspx new file mode 100644 index 0000000..06cc443 --- /dev/null +++ b/supplierBuildFile.aspx @@ -0,0 +1 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="supplierBuildFile.aspx.cs" Inherits="supplierBuildFile" %> \ No newline at end of file diff --git a/supplierBuildFile.aspx.cs b/supplierBuildFile.aspx.cs new file mode 100644 index 0000000..e47dcc8 --- /dev/null +++ b/supplierBuildFile.aspx.cs @@ -0,0 +1,343 @@ +using Aliyun.OSS; +using Aliyun.OSS.Common; +using BizCom; +using ICSharpCode.SharpZipLib.Zip; +using NPOI.OpenXmlFormats.Dml.Diagram; +using NPOI.OpenXmlFormats.Shared; +using SiteCore.Handler; +using SiteCore.Redis; +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Data; +using System.Data.SqlClient; +using System.Diagnostics; +using System.IO; +using System.Linq; +using System.Net; +using System.Runtime.InteropServices; +using System.Security.Principal; +using System.Text; +using System.Threading; +using System.Threading.Tasks; +using System.Web; +using System.Web.Services.Description; +using System.Web.UI; + + +public partial class supplierBuildFile : System.Web.UI.Page +{ + public static string upPath = ConfigurationManager.AppSettings["upPath"]; + public static string copyPath = ConfigurationManager.AppSettings["copyPath"]; + + public static string siteUrl = ConfigurationManager.AppSettings["OriSiteUrl"]; + + [DllImport("DrvInterface64.dll", CharSet = CharSet.Unicode)] + public static extern uint DecFile(string filename); + + [DllImport("DrvInterface64.dll", CharSet = CharSet.Unicode)] + public static extern int IsFileEncrypted(string filename);//返回1为加密,0为未被加密 + [DllImport("DrvInterface64.dll", CharSet = CharSet.Ansi)] + public static extern void CreateUserKey(StringBuilder key, int len); + [DllImport("DrvInterface64.dll", CharSet = CharSet.Ansi)] + public static extern int InitAesKey(StringBuilder key, int len); + + [DllImport("DrvInterface64.dll")] + public static extern int IsInitedAesKey(); + + private void conErc(string msg) + { + XLog.SaveLog(0, msg); + Response.Write(msg); + //Response.StatusCode = (int)HttpStatusCode.NotFound; + //Response.End(); + } + + private void conSuc(string msg) + { + Response.Write("{\"type\":\"success\",\"result\":\"" + msg + "\"}"); + //Response.End(); + } + + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + Response.Buffer = true; + downloadMore(); + } + } + + private string getCanDownFile(string fileName) + { + string[] extArr = new string[] { ".cdr", ".zip", ".rar", ".pdf" }; + foreach (string ext in extArr) + { + string fname = fileName + ext; + if (File.Exists(fname)) + { + return fname; + } + } + + return ""; + } + static bool running = false; + + private void downloadMore() + { + if (running) + { + conSuc("运行中!"); + return; + } + running = true; + + var identity = WindowsIdentity.GetCurrent(); + var principal = new WindowsPrincipal(identity); + Task.Run(async () => + { + try + { + using (identity.Impersonate()) + { + + MemoryStream ms = new MemoryStream(); + byte[] buffer = null; + List addFiles = new List(); + List addCtid = new List(); + using (ZipFile file = ZipFile.Create(ms)) + { + + + } + + } + running = false; + } + catch (Exception ex) + { + running = false; + } + }); + + conSuc("运行结束!"); + //FileOssUp(); + } + + + private string formatMemo(object memo) + { + string m = memo.ToString(); + m = m.Replace("\\", "").Replace("/", "").Replace(":", "").Replace("*", "").Replace("?", "").Replace("<", "").Replace(">", "").Replace("|", ""); + return m; + } + + private void copyFile(string date, string supplier, string file) + { + string path = copyPath + "\\" + date + "\\" + supplier + "\\" + "车间下载"; + if (!Directory.Exists(path)) Directory.CreateDirectory(path); + string fname = Path.GetFileName(file); + File.Copy(file, path + "\\" + fname, true); + if (!File.Exists(path + "\\" + fname)) + { + File.Copy(file, path + "\\" + fname, true); + } + } + + private string getDesignTime(object v) + { + if (v.ToString() == "") return ""; + return Convert.ToDateTime(v).ToString("yyyyMMdd"); + } + + private string getDesignDate(object v) + { + return DateTime.Now.ToString("yyyy-MM-dd"); + /*if (v.ToString() == "") return ""; + return Convert.ToDateTime(v).ToString("yyyy-MM-dd");*/ + } + + private void FileOssUp() + { + // yourEndpoint填写Bucket所在地域对应的Endpoint。以华东1(杭州)为例,Endpoint填写为https://oss-cn-hangzhou.aliyuncs.com。 + var endpoint = "https://oss-cn-fuzhou.aliyuncs.com"; + // 从环境变量中获取访问凭证。运行本代码示例之前,请确保已设置环境变量OSS_ACCESS_KEY_ID和OSS_ACCESS_KEY_SECRET。 + var accessKeyId = "LTAI5tE7wuNkeT9jZ42bQnyr"; + var accessKeySecret = "NnutvWhKl4HbQFSad3HosYbCkEkbjN"; + // 填写Bucket名称,例如examplebucket。 + var bucketName = "dfdiyfile"; + // 填写Object完整路径,完整路径中不能包含Bucket名称,例如exampledir/exampleobject.txt。 + var objectName = "supplierFile/test.zip"; + + // 填写Bucket所在地域对应的Region。以华东1(杭州)为例,Region填写为cn-hangzhou。 + string region = "cn-fuzhou"; + + // 创建ClientConfiguration实例,按照您的需要修改默认参数。 + var conf = new ClientConfiguration(); + + // 设置v4签名。 + conf.SignatureVersion = SignatureVersion.V4; + + // 创建OssClient实例。 + var client = new OssClient(endpoint, accessKeyId, accessKeySecret, conf); + client.SetRegion(region); + try + { + MemoryStream ms = new MemoryStream(); + byte[] buffer = null; + using (ZipFile file = ZipFile.Create(ms)) + { + + file.BeginUpdate(); + //file.NameTransform = new ZipNameTransform(); + file.NameTransform = new MyNameTransfom(); + + file.Add("C:\\Users\\231010\\Downloads\\setup.exe"); + file.CommitUpdate(); + buffer = new byte[ms.Length]; + ms.Position = 0; + ms.Read(buffer, 0, buffer.Length); //读取文件内容(1次读ms.Length/1024M) + ms.Flush(); + ms.Close(); + + } + MemoryStream requestContent = new MemoryStream(buffer); + // 上传文件。 + client.PutObject(bucketName, objectName, requestContent); + Debug.WriteLine("Put object succeeded"); + } + catch (Exception ex) + { + Debug.WriteLine("Put object failed" + ex.Message); + } + + + conSuc("上传成功!"); + return; + } + /// 批量进行多个文件压缩到一个文件 + ///
+ /// 文件列表(绝对路径) 这里用的数组,你可以用list 等或者 + /// 生成的zip文件名称 + private void ZipFileDownload(int userId, List ctidLst, List files, string zipFileName, int onlyDownFile, int isFromClient) + { + + // yourEndpoint填写Bucket所在地域对应的Endpoint。以华东1(杭州)为例,Endpoint填写为https://oss-cn-hangzhou.aliyuncs.com。 + var endpoint = "https://oss-cn-fuzhou.aliyuncs.com"; + // 从环境变量中获取访问凭证。运行本代码示例之前,请确保已设置环境变量OSS_ACCESS_KEY_ID和OSS_ACCESS_KEY_SECRET。 + var accessKeyId = "LTAI5tE7wuNkeT9jZ42bQnyr"; + var accessKeySecret = "NnutvWhKl4HbQFSad3HosYbCkEkbjN"; + // 填写Bucket名称,例如examplebucket。 + var bucketName = "dfdiyfile"; + // 填写Object完整路径,完整路径中不能包含Bucket名称,例如exampledir/exampleobject.txt。 + var objectName = "exampledir/exampleobject.txt"; + // 填写字符串。 + var objectContent = "More than just cloud."; + // 填写Bucket所在地域对应的Region。以华东1(杭州)为例,Region填写为cn-hangzhou。 + const string region = "oss-cn-fuzhou"; + + // 创建ClientConfiguration实例,按照您的需要修改默认参数。 + var conf = new ClientConfiguration(); + + // 设置v4签名。 + conf.SignatureVersion = SignatureVersion.V4; + + // 创建OssClient实例。 + var client = new OssClient(endpoint, accessKeyId, accessKeySecret, conf); + client.SetRegion(region); + try + { + MemoryStream ms = new MemoryStream(); + byte[] buffer = null; + using (ZipFile file = ZipFile.Create(ms)) + { + + file.BeginUpdate(); + //file.NameTransform = new ZipNameTransform(); + file.NameTransform = new MyNameTransfom(); + + file.Add("C:\\Users\\231010\\Downloads\\setup.exe"); + file.CommitUpdate(); + buffer = new byte[ms.Length]; + ms.Position = 0; + ms.Read(buffer, 0, buffer.Length); //读取文件内容(1次读ms.Length/1024M) + ms.Flush(); + ms.Close(); + + } + MemoryStream requestContent = new MemoryStream(buffer); + // 上传文件。 + client.PutObject(bucketName, objectName, requestContent); + Console.WriteLine("Put object succeeded"); + } + catch (Exception ex) + { + Console.WriteLine("Put object failed, {0}", ex.Message); + } + + + conSuc("上传成功!"); + return; + //for (int i = 0; i < addFiles.Count; i++) + //{ + // updateIsDownSuccess(userId, addCtid[i]); + //} + //StringBuilder sql = new StringBuilder(); + //string tids = string.Join(",", addCtid); + //sql.AppendFormat("update CE_ErpTradeCell set OrderState = 6 where ctid in ({0}) ;", ("'" + tids.Replace(",", "','") + "'")); + //CeErpTradeCell.ExecuteNonQuery(sql.ToString()); + //sql = new StringBuilder(); + //sql.AppendFormat("insert into CE_ErpTradeLog(tid,orderstate,userid,operatetime,con) select ctid,{1},{2},getdate(),'{3}' from ce_erptradecell where ctid in ({0}) ;", ("'" + tids.Replace(",", "','") + "'"), (int)OrderState.下单完成, userId, "下载设计文件"); + //CeErpTradeCell.ExecuteNonQuery(sql.ToString()); + } + + //public static object downfileObj = new object(); + private void downLoadFile(int userId, string ctid, string file, int onlyDownFile, int isFromClient) + { + string filePath = file; + string dfile = Path.GetFileName(file); + + FileStream fs = new FileStream(filePath, FileMode.Open); + byte[] bytes = new byte[(int)fs.Length]; + fs.Read(bytes, 0, bytes.Length); + fs.Close(); + + + Response.Clear(); + // + Response.ClearContent(); + Response.ClearHeaders(); + + Response.ContentType = "application/octet-stream"; + //通知浏览器下载文件而不是打开\\fileDownload=true; path=/ + Response.AddHeader("Set-Cookie", "fileDownload=true; path=/;"); + //Response.AddHeader("Cache-Control", "no-cache, no-store, must-revalidate"); + Response.AddHeader("Content-Disposition", "attachment; filename=" + HttpUtility.UrlEncode(dfile, System.Text.Encoding.UTF8)); + Response.AddHeader("Content-Length", bytes.Length.ToString()); + Response.AddHeader("Access-Control-Expose-Headers", "Content-Disposition"); + Response.BinaryWrite(bytes); + Response.Flush(); + + //updateIsDownSuccess(userId, ctid); + //StringBuilder sql = new StringBuilder(); + //string tids = string.Join(",", ctid); + //sql.AppendFormat("update CE_ErpTradeCell set OrderState = 6 where ctid in ({0}) ;", ("'" + tids.Replace(",", "','") + "'")); + //CeErpTradeCell.ExecuteNonQuery(sql.ToString()); + //sql = new StringBuilder(); + //sql.AppendFormat("insert into CE_ErpTradeLog(tid,orderstate,userid,operatetime,con) select ctid,{1},{2},getdate(),'{3}' from ce_erptradecell where ctid in ({0}) ;", ("'" + tids.Replace(",", "','") + "'"), (int)OrderState.下单完成, userId, "下载设计文件"); + //CeErpTradeCell.ExecuteNonQuery(sql.ToString()); + } + + public static void addLog(string ctid, int userid, string con, int orderState = 0, int aftersaleState = 0) + { + CeErpTradeLog log = new CeErpTradeLog(); + log.tid = ctid; + log.UserId = userid; + log.Con = con; + log.OrderState = orderState; + log.AfterSaleState = aftersaleState; + log.OperateTime = DateTime.Now; + log.Create(); + } +} \ No newline at end of file diff --git a/supplierDownload.aspx.cs b/supplierDownload.aspx.cs index 0c69333..5d6c7f9 100644 --- a/supplierDownload.aspx.cs +++ b/supplierDownload.aspx.cs @@ -68,7 +68,7 @@ public partial class supplierDownload : System.Web.UI.Page string fname = fileName + ext; if (File.Exists(fname)) { - return fname; + return ext; } } @@ -123,7 +123,7 @@ public partial class supplierDownload : System.Web.UI.Page int mvClientDown = 0;//转移到客户端下载 - int isFromClient = 0; + int isFromClient = 0; if (onlyDownFile != 1) { if (Request["supplier"] == null || Request["supplier"].ToString() != "1")//如果不是只下文件,那他就要是供应商 @@ -133,23 +133,23 @@ public partial class supplierDownload : System.Web.UI.Page } else { - /* Int32.TryParse(Request["isFromClient"], out isFromClient); + /* Int32.TryParse(Request["isFromClient"], out isFromClient); - if (userId > 0 && isFromClient != 1) - { - string file_client_down_flg = erpRedis.RedisHelper.StringGet("file_client_down_flg_" + userId); - if (file_client_down_flg != null && file_client_down_flg == "1") - { - mvClientDown = 1; - } - }*/ + if (userId > 0 && isFromClient != 1) + { + string file_client_down_flg = erpRedis.RedisHelper.StringGet("file_client_down_flg_" + userId); + if (file_client_down_flg != null && file_client_down_flg == "1") + { + mvClientDown = 1; + } + }*/ } } try { StringBuilder sql = new StringBuilder(); - sql.AppendFormat("select ctid,seller_memo,FinishDesignTime,OrderState,SupplierName,FileMd5 from view_erptradecell where FinishDesignTime is not null and ctid in ({0}) {1}", ("'" + tids.Replace(",", "','") + "'"), ((onlyDownFile == 1 || isFromClient == 1) ? "" : " and OrderState=5 ")); + sql.AppendFormat("select ctid,seller_memo,FinishDesignTime,OrderState,SupplierName,FileMd5,OrderSn,tid from view_erptradecell where FinishDesignTime is not null and ctid in ({0}) {1}", ("'" + tids.Replace(",", "','") + "'"), ((onlyDownFile == 1 || isFromClient == 1) ? "" : " and OrderState=5 ")); DataTable dt = CeErpTradeCell.ExecuteDataset(sql.ToString()).Tables[0]; if (dt == null || dt.Rows.Count < 1) { @@ -160,12 +160,23 @@ public partial class supplierDownload : System.Web.UI.Page List files = new List(); List noFileLst = new List(); List ctidLst = new List(); + List rnameList = new List(); foreach (DataRow dr in dt.Rows) { string finishDesignTime = getDesignTime(dr["FinishDesignTime"]); string ctid = dr["ctid"].ToString(); string df_name = upPath + "\\" + finishDesignTime + "\\" + formatMemo(dr["seller_memo"]); - string fname = getCanDownFile(df_name); + string ext = getCanDownFile(df_name); + string fname = df_name + ext; + string tid = dr["tid"].ToString(); + string orderSn = dr["OrderSn"].ToString(); + string rname = ""; + if (!string.IsNullOrEmpty(tid) && !string.IsNullOrEmpty(orderSn)) + { + rname = formatMemo(dr["seller_memo"]).Replace(orderSn, tid); + rname = rname + "《" + orderSn + "》"; + rname = rname + ext; + } int IsFileEncrypt = IsFileEncrypted(fname); if (IsFileEncrypt == 1 && File.Exists(fname)) { @@ -200,11 +211,14 @@ public partial class supplierDownload : System.Web.UI.Page files.Add(fname); ctidLst.Add(ctid); + rnameList.Add(rname); fileMd5 += "," + dr["FileMd5"].ToString(); fileNames += "#$#" + Path.GetFileName(fname); if (onlyDownFile != 1 && mvClientDown != 1) - copyFile(getDesignDate(dr["FinishDesignTime"]), dr["SupplierName"].ToString(), fname); + { + copyFile(getDesignDate(dr["FinishDesignTime"]), dr["SupplierName"].ToString(), fname, rname); + } } if (files.Count == 0) @@ -243,11 +257,11 @@ public partial class supplierDownload : System.Web.UI.Page if (files.Count == 1) { - downLoadFile(userId, ctidLst[0], files[0], onlyDownFile, isFromClient); + downLoadFile(userId, ctidLst[0], files[0], onlyDownFile, isFromClient, rnameList[0]); } else { - ZipFileDownload(userId, ctidLst, files, "LT_" + DateTime.Now.ToString("yyyyMMddhhMmss") + ".zip", onlyDownFile, isFromClient); //downLoadFile(userId, ctidLst[i], files[i]); + ZipFileDownload(userId, ctidLst, files, "LT_" + DateTime.Now.ToString("yyyyMMddhhMmss") + ".zip", onlyDownFile, isFromClient, rnameList); //downLoadFile(userId, ctidLst[i], files[i]); } //conSuc("文件已下载完成"); @@ -269,16 +283,35 @@ public partial class supplierDownload : System.Web.UI.Page m = m.Replace("\\", "").Replace("/", "").Replace(":", "").Replace("*", "").Replace("?", "").Replace("<", "").Replace(">", "").Replace("|", ""); return m; } - - private void copyFile(string date, string supplier, string file) + Dictionary replaceRules = new Dictionary + { + { "皙贝", "白卡" }, + { "睿狐", "莱尼" }, + { "岚蝶", "安格" }, + { "琮纹", "刚古" }, + { "珠光", "珠光" }, + { "溪雪", "珠光" }, + { "雅柔", "雅柔" }, + { "萱姿", "雅柔" }, + { "草香", "草香" }, + { "芳怡", "草香" }, + { "金绒", "牛皮" }, + { "素芸", "棉卡" }, + { "玉蕊", "蛋壳" } + }; + private void copyFile(string date, string supplier, string file, string rname) { string path = copyPath + "\\" + date + "\\" + supplier + "\\" + "车间下载"; if (!Directory.Exists(path)) Directory.CreateDirectory(path); - string fname = Path.GetFileName(file); - File.Copy(file, path + "\\" + fname, true); - if (!File.Exists(path + "\\" + fname)) + foreach (var rule in replaceRules) { - File.Copy(file, path + "\\" + fname, true); + rname = rname.Replace(rule.Key, rule.Value); + } + + File.Copy(file, path + "\\" + rname, true); + if (!File.Exists(path + "\\" + rname)) + { + File.Copy(file, path + "\\" + rname, true); } } @@ -299,7 +332,7 @@ public partial class supplierDownload : System.Web.UI.Page ///
/// 文件列表(绝对路径) 这里用的数组,你可以用list 等或者 /// 生成的zip文件名称 - private void ZipFileDownload(int userId, List ctidLst, List files, string zipFileName, int onlyDownFile, int isFromClient) + private void ZipFileDownload(int userId, List ctidLst, List files, string zipFileName, int onlyDownFile, int isFromClient, List rnameList) { MemoryStream ms = new MemoryStream(); byte[] buffer = null; @@ -317,7 +350,7 @@ public partial class supplierDownload : System.Web.UI.Page { try { - file.Add(files[i]); + file.Add(files[i], rnameList[i]); addFiles.Add(files[i]); addCtid.Add(ctidLst[i]); } @@ -360,7 +393,7 @@ public partial class supplierDownload : System.Web.UI.Page } //public static object downfileObj = new object(); - private void downLoadFile(int userId, string ctid, string file, int onlyDownFile, int isFromClient) + private void downLoadFile(int userId, string ctid, string file, int onlyDownFile, int isFromClient, string fname) { string filePath = file; string dfile = Path.GetFileName(file); @@ -380,7 +413,7 @@ public partial class supplierDownload : System.Web.UI.Page //通知浏览器下载文件而不是打开\\fileDownload=true; path=/ Response.AddHeader("Set-Cookie", "fileDownload=true; path=/;"); //Response.AddHeader("Cache-Control", "no-cache, no-store, must-revalidate"); - Response.AddHeader("Content-Disposition", "attachment; filename=" + HttpUtility.UrlEncode(dfile, System.Text.Encoding.UTF8)); + Response.AddHeader("Content-Disposition", "attachment; filename=" + HttpUtility.UrlEncode(fname, System.Text.Encoding.UTF8)); Response.AddHeader("Content-Length", bytes.Length.ToString()); Response.AddHeader("Access-Control-Expose-Headers", "Content-Disposition"); Response.BinaryWrite(bytes); diff --git a/uploadFile.aspx.cs b/uploadFile.aspx.cs index 67e00b9..f2e8204 100644 --- a/uploadFile.aspx.cs +++ b/uploadFile.aspx.cs @@ -217,8 +217,14 @@ public partial class uploadFile : System.Web.UI.Page entity.FinishDesignTime = DateTime.Now; if (entity.isDianziOrder == 1 || entity.ProductId == 57 || entity.ProductId == 28) { - entity.OrderState = 7; - commonHelper.setOrderDummyDelivery(entity.tid); + entity.OrderState = 6; + entity.SupplierId = 35; + entity.FinishPlaceTime = DateTime.Now; + bool sendResult = commonHelper.SetOrderDummyDelivery(entity.tid); + if (sendResult) + { + entity.OrderState = 7; + } } else entity.OrderState = 5; //设计完成 @@ -264,7 +270,7 @@ public partial class uploadFile : System.Web.UI.Page entity.FinishPlaceTime = DateTime.Now; } } - if (((entity.seller_memo.Contains("条幅彩色") && !entity.seller_memo.Contains("辽宁") && !entity.seller_memo.Contains("山东")) || entity.seller_memo.Contains("贡锻布") || entity.seller_memo.Contains("贡缎布")) && !entity.seller_memo.Contains("双喷")) + if (((entity.seller_memo.Contains("条幅彩色") && !entity.seller_memo.Contains("辽宁") && !entity.seller_memo.Contains("山东")) || entity.seller_memo.Contains("贡锻布") || entity.seller_memo.Contains("贡缎布") || entity.seller_memo.Contains("旗帜布")) && !entity.seller_memo.Contains("双喷")) { entity.IsVerifyToSupplier = true; entity.SupplierId = 98; @@ -310,7 +316,27 @@ public partial class uploadFile : System.Web.UI.Page CeErpTradeCell.UpdateRelationOrder(entity.ctid); CeErpTradeLog.AddLog(entity.ctid, entity.OrderState, userId, "上传设计文件-" + saveFile); + if (ctid.IndexOf("S_") >= -1) + { + StringBuilder sql = new StringBuilder(); + sql.AppendFormat("select * from Ce_ErpTradeCellExtend where ctid='{0}'", entity.ctid); + DataTable cellEx = CeErpTradeCell.ExecuteDataset(sql.ToString()).Tables[0]; + if (cellEx.Rows.Count > 0) + { + string txtReprintTime = cellEx.Rows[0]["ReprintTime"].ToString(); + if (!string.IsNullOrEmpty(txtReprintTime) && !"null".Equals(txtReprintTime)) + { + DateTime reprint = DateTime.Parse(txtReprintTime); + if (DateTime.Compare(DateTime.Now.AddHours(-24), reprint) >= 0) + { + string parentId = entity.ctid.Substring(2); + string update_sql = string.Format("update Ce_ErpTradeAfterSaleExtend set ReprintOut = ReprintOut+1 where tid= '{0}' ;", parentId); + CeErpTradeLog.ExecuteNonQuery(update_sql); + } + } + } + } if (Path.GetExtension(saveFile).IndexOf("cdr", StringComparison.OrdinalIgnoreCase) != -1) { //string sql = string.Format("insert into s_cdrtopng(name,addtime)values('{0}',getdate()) ;", saveFile);