Permalink
Cannot retrieve contributors at this time
Fetching contributors…
| <Type Name="AccessCondition" FullName="Microsoft.Azure.Documents.Client.AccessCondition"> | |
| <TypeSignature Language="C#" Value="public sealed class AccessCondition" /> | |
| <TypeSignature Language="ILAsm" Value=".class public auto ansi sealed beforefieldinit AccessCondition extends System.Object" /> | |
| <TypeSignature Language="DocId" Value="T:Microsoft.Azure.Documents.Client.AccessCondition" /> | |
| <AssemblyInfo> | |
| <AssemblyName>Microsoft.Azure.Documents.Client</AssemblyName> | |
| <AssemblyVersion>1.14.0.0</AssemblyVersion> | |
| <AssemblyVersion>1.16.0.0</AssemblyVersion> | |
| <AssemblyVersion>1.17.0.0</AssemblyVersion> | |
| </AssemblyInfo> | |
| <AssemblyInfo> | |
| <AssemblyName>Microsoft.Azure.DocumentDB.Core</AssemblyName> | |
| <AssemblyVersion>1.5.0.0</AssemblyVersion> | |
| </AssemblyInfo> | |
| <Base> | |
| <BaseTypeName>System.Object</BaseTypeName> | |
| </Base> | |
| <Interfaces /> | |
| <Docs> | |
| <summary> | |
| Represents a set of access conditions to be used for operations in the Azure DocumentDB database service. | |
| </summary> | |
| <remarks>To be added.</remarks> | |
| <example> | |
| The following example shows how to use AccessCondition with DocumentClient. | |
| <code language="c#"><![CDATA[ | |
| // If ETag is current, then this will succeed. Otherwise the request will fail with HTTP 412 Precondition Failure | |
| await client.ReplaceDocumentAsync( | |
| readCopyOfBook.SelfLink, | |
| new Book { Title = "Moby Dick", Price = 14.99 }, | |
| new RequestOptions | |
| { | |
| AccessCondition = new AccessCondition | |
| { | |
| Condition = readCopyOfBook.ETag, | |
| Type = AccessConditionType.IfMatch | |
| } | |
| }); | |
| ]]></code></example> | |
| <altmember cref="T:Microsoft.Azure.Documents.Client.AccessConditionType" /> | |
| <altmember cref="T:Microsoft.Azure.Documents.Client.RequestOptions" /> | |
| <altmember cref="T:Microsoft.Azure.Documents.Resource" /> | |
| <example> | |
| The following example shows how to use AccessCondition with DocumentClient. | |
| <code language="c#"><![CDATA[ | |
| // If ETag is current, then this will succeed. Otherwise the request will fail with HTTP 412 Precondition Failure | |
| await client.ReplaceDocumentAsync( | |
| readCopyOfBook.SelfLink, | |
| new Book { Title = "Moby Dick", Price = 14.99 }, | |
| new RequestOptions | |
| { | |
| AccessCondition = new AccessCondition | |
| { | |
| Condition = readCopyOfBook.ETag, | |
| Type = AccessConditionType.IfMatch | |
| } | |
| }); | |
| ]]></code></example> | |
| <example> | |
| The following example shows how to use AccessCondition with DocumentClient. | |
| <code language="c#"><![CDATA[ | |
| // If ETag is current, then this will succeed. Otherwise the request will fail with HTTP 412 Precondition Failure | |
| await client.ReplaceDocumentAsync( | |
| readCopyOfBook.SelfLink, | |
| new Book { Title = "Moby Dick", Price = 14.99 }, | |
| new RequestOptions | |
| { | |
| AccessCondition = new AccessCondition | |
| { | |
| Condition = readCopyOfBook.ETag, | |
| Type = AccessConditionType.IfMatch | |
| } | |
| }); | |
| ]]></code></example> | |
| <example> | |
| The following example shows how to use AccessCondition with DocumentClient. | |
| <code language="c#"><![CDATA[ | |
| // If ETag is current, then this will succeed. Otherwise the request will fail with HTTP 412 Precondition Failure | |
| await client.ReplaceDocumentAsync( | |
| readCopyOfBook.SelfLink, | |
| new Book { Title = "Moby Dick", Price = 14.99 }, | |
| new RequestOptions | |
| { | |
| AccessCondition = new AccessCondition | |
| { | |
| Condition = readCopyOfBook.ETag, | |
| Type = AccessConditionType.IfMatch | |
| } | |
| }); | |
| ]]></code></example> | |
| <example> | |
| The following example shows how to use AccessCondition with DocumentClient. | |
| <code language="c#"><![CDATA[ | |
| // If ETag is current, then this will succeed. Otherwise the request will fail with HTTP 412 Precondition Failure | |
| await client.ReplaceDocumentAsync( | |
| readCopyOfBook.SelfLink, | |
| new Book { Title = "Moby Dick", Price = 14.99 }, | |
| new RequestOptions | |
| { | |
| AccessCondition = new AccessCondition | |
| { | |
| Condition = readCopyOfBook.ETag, | |
| Type = AccessConditionType.IfMatch | |
| } | |
| }); | |
| ]]></code></example> | |
| <example> | |
| The following example shows how to use AccessCondition with DocumentClient. | |
| <code language="c#"><![CDATA[ | |
| // If ETag is current, then this will succeed. Otherwise the request will fail with HTTP 412 Precondition Failure | |
| await client.ReplaceDocumentAsync( | |
| readCopyOfBook.SelfLink, | |
| new Book { Title = "Moby Dick", Price = 14.99 }, | |
| new RequestOptions | |
| { | |
| AccessCondition = new AccessCondition | |
| { | |
| Condition = readCopyOfBook.ETag, | |
| Type = AccessConditionType.IfMatch | |
| } | |
| }); | |
| ]]></code></example> | |
| <example> | |
| The following example shows how to use AccessCondition with DocumentClient. | |
| <code language="c#"><![CDATA[ | |
| // If ETag is current, then this will succeed. Otherwise the request will fail with HTTP 412 Precondition Failure | |
| await client.ReplaceDocumentAsync( | |
| readCopyOfBook.SelfLink, | |
| new Book { Title = "Moby Dick", Price = 14.99 }, | |
| new RequestOptions | |
| { | |
| AccessCondition = new AccessCondition | |
| { | |
| Condition = readCopyOfBook.ETag, | |
| Type = AccessConditionType.IfMatch | |
| } | |
| }); | |
| ]]></code></example> | |
| <example> | |
| The following example shows how to use AccessCondition with DocumentClient. | |
| <code language="c#"><![CDATA[ | |
| // If ETag is current, then this will succeed. Otherwise the request will fail with HTTP 412 Precondition Failure | |
| await client.ReplaceDocumentAsync( | |
| readCopyOfBook.SelfLink, | |
| new Book { Title = "Moby Dick", Price = 14.99 }, | |
| new RequestOptions | |
| { | |
| AccessCondition = new AccessCondition | |
| { | |
| Condition = readCopyOfBook.ETag, | |
| Type = AccessConditionType.IfMatch | |
| } | |
| }); | |
| ]]></code></example> | |
| <example> | |
| The following example shows how to use AccessCondition with DocumentClient. | |
| <code language="c#"><![CDATA[ | |
| // If ETag is current, then this will succeed. Otherwise the request will fail with HTTP 412 Precondition Failure | |
| await client.ReplaceDocumentAsync( | |
| readCopyOfBook.SelfLink, | |
| new Book { Title = "Moby Dick", Price = 14.99 }, | |
| new RequestOptions | |
| { | |
| AccessCondition = new AccessCondition | |
| { | |
| Condition = readCopyOfBook.ETag, | |
| Type = AccessConditionType.IfMatch | |
| } | |
| }); | |
| ]]></code></example> | |
| </Docs> | |
| <Members> | |
| <Member MemberName=".ctor"> | |
| <MemberSignature Language="C#" Value="public AccessCondition ();" /> | |
| <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" /> | |
| <MemberSignature Language="DocId" Value="M:Microsoft.Azure.Documents.Client.AccessCondition.#ctor" /> | |
| <MemberType>Constructor</MemberType> | |
| <AssemblyInfo> | |
| <AssemblyName>Microsoft.Azure.Documents.Client</AssemblyName> | |
| <AssemblyVersion>1.14.0.0</AssemblyVersion> | |
| <AssemblyVersion>1.16.0.0</AssemblyVersion> | |
| <AssemblyVersion>1.17.0.0</AssemblyVersion> | |
| </AssemblyInfo> | |
| <AssemblyInfo> | |
| <AssemblyName>Microsoft.Azure.DocumentDB.Core</AssemblyName> | |
| <AssemblyVersion>1.5.0.0</AssemblyVersion> | |
| </AssemblyInfo> | |
| <Parameters /> | |
| <Docs> | |
| <summary>To be added.</summary> | |
| <remarks>To be added.</remarks> | |
| </Docs> | |
| </Member> | |
| <Member MemberName="Condition"> | |
| <MemberSignature Language="C#" Value="public string Condition { get; set; }" /> | |
| <MemberSignature Language="ILAsm" Value=".property instance string Condition" /> | |
| <MemberSignature Language="DocId" Value="P:Microsoft.Azure.Documents.Client.AccessCondition.Condition" /> | |
| <MemberType>Property</MemberType> | |
| <AssemblyInfo> | |
| <AssemblyName>Microsoft.Azure.Documents.Client</AssemblyName> | |
| <AssemblyVersion>1.14.0.0</AssemblyVersion> | |
| <AssemblyVersion>1.16.0.0</AssemblyVersion> | |
| <AssemblyVersion>1.17.0.0</AssemblyVersion> | |
| </AssemblyInfo> | |
| <AssemblyInfo> | |
| <AssemblyName>Microsoft.Azure.DocumentDB.Core</AssemblyName> | |
| <AssemblyVersion>1.5.0.0</AssemblyVersion> | |
| </AssemblyInfo> | |
| <ReturnValue> | |
| <ReturnType>System.String</ReturnType> | |
| </ReturnValue> | |
| <Docs> | |
| <summary> | |
| Gets or sets the value of the condition in the Azure DocumentDB database service. | |
| </summary> | |
| <value> | |
| The value of the condition. For <see cref="T:Microsoft.Azure.Documents.Client.AccessConditionType" /> IfMatch and IfNotMatch, this is the ETag that has to be compared to. | |
| </value> | |
| <remarks>To be added.</remarks> | |
| <altmember cref="T:Microsoft.Azure.Documents.Resource" /> | |
| </Docs> | |
| </Member> | |
| <Member MemberName="Type"> | |
| <MemberSignature Language="C#" Value="public Microsoft.Azure.Documents.Client.AccessConditionType Type { get; set; }" /> | |
| <MemberSignature Language="ILAsm" Value=".property instance valuetype Microsoft.Azure.Documents.Client.AccessConditionType Type" /> | |
| <MemberSignature Language="DocId" Value="P:Microsoft.Azure.Documents.Client.AccessCondition.Type" /> | |
| <MemberType>Property</MemberType> | |
| <AssemblyInfo> | |
| <AssemblyName>Microsoft.Azure.Documents.Client</AssemblyName> | |
| <AssemblyVersion>1.14.0.0</AssemblyVersion> | |
| <AssemblyVersion>1.16.0.0</AssemblyVersion> | |
| <AssemblyVersion>1.17.0.0</AssemblyVersion> | |
| </AssemblyInfo> | |
| <AssemblyInfo> | |
| <AssemblyName>Microsoft.Azure.DocumentDB.Core</AssemblyName> | |
| <AssemblyVersion>1.5.0.0</AssemblyVersion> | |
| </AssemblyInfo> | |
| <ReturnValue> | |
| <ReturnType>Microsoft.Azure.Documents.Client.AccessConditionType</ReturnType> | |
| </ReturnValue> | |
| <Docs> | |
| <summary> | |
| Gets or sets the condition type in the Azure DocumentDB database service. | |
| </summary> | |
| <value> | |
| The condition type. Can be IfMatch or IfNoneMatch. | |
| </value> | |
| <remarks>To be added.</remarks> | |
| </Docs> | |
| </Member> | |
| </Members> | |
| </Type> |