Class ArasHeaders
Headers to send with each request to Aras
Inheritance
Inherited Members
Namespace: Innovator.Client
Assembly: Innovator.Client.dll
Syntax
public class ArasHeaders : IDictionary<string, string>, ICollection<KeyValuePair<string, string>>, IEnumerable<KeyValuePair<string, string>>, IEnumerable
Properties
| Improve this Doc View SourceCount
Gets the number of headers contained in the ArasHeaders.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Implements
IsReadOnly
Returns false
to indicate that the collection is editable
Declaration
public bool IsReadOnly { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Implements
Item[String]
Gets or sets the header with the specified name.
Declaration
public string this[string key] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The name of the header. |
Property Value
Type | Description |
---|---|
System.String | The header value. |
Implements
Keys
Gets an System.Collections.Generic.ICollection<T> containing the keys of the ArasHeaders.
Declaration
public ICollection<string> Keys { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.ICollection<System.String> |
Implements
Locale
Locale to use when logging in
Declaration
public string Locale { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TimeZone
Time zone to use with each request
Declaration
public string TimeZone { get; set; }
Property Value
Type | Description |
---|---|
System.String |
UserAgent
User agent string to send with each request
Declaration
public string UserAgent { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Values
Gets an System.Collections.Generic.ICollection<T> containing the values of the ArasHeaders.
Declaration
public ICollection<string> Values { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.ICollection<System.String> |
Implements
Methods
| Improve this Doc View SourceAdd(String, String)
Adds a header with the provided name and value to the ArasHeaders.
Declaration
public void Add(string key, string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The header name. |
System.String | value | The header value. |
Implements
Exceptions
Type | Condition |
---|---|
System.ArgumentException |
Clear()
Removes all headers from the ArasHeaders.
Declaration
public void Clear()
Implements
ContainsKey(String)
Determines whether the System.Collections.Generic.IDictionary<TKey, TValue> contains an element with the specified key.
Declaration
public bool ContainsKey(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key to locate in the System.Collections.Generic.IDictionary<TKey, TValue>. |
Returns
Type | Description |
---|---|
System.Boolean | true if the System.Collections.Generic.IDictionary<TKey, TValue> contains an element with the key; otherwise, false. |
Implements
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<KeyValuePair<string, string>> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<System.String, System.String>> | An enumerator that can be used to iterate through the collection. |
Implements
Remove(String)
Removes the element with the specified key from the System.Collections.Generic.IDictionary<TKey, TValue>.
Declaration
public bool Remove(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key of the element to remove. |
Returns
Type | Description |
---|---|
System.Boolean | true if the element is successfully removed; otherwise, false. This method also returns false if |
Implements
TryGetValue(String, out String)
Gets the value associated with the specified key.
Declaration
public bool TryGetValue(string key, out string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key whose value to get. |
System.String | value | When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the |
Returns
Type | Description |
---|---|
System.Boolean | true if the object that implements System.Collections.Generic.IDictionary<TKey, TValue> contains an element with the specified key; otherwise, false. |
Implements
Explicit Interface Implementations
| Improve this Doc View SourceICollection<KeyValuePair<String, String>>.Add(KeyValuePair<String, String>)
Declaration
void ICollection<KeyValuePair<string, string>>.Add(KeyValuePair<string, string> item)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.KeyValuePair<System.String, System.String> | item |
Implements
ICollection<KeyValuePair<String, String>>.Contains(KeyValuePair<String, String>)
Declaration
bool ICollection<KeyValuePair<string, string>>.Contains(KeyValuePair<string, string> item)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.KeyValuePair<System.String, System.String> | item |
Returns
Type | Description |
---|---|
System.Boolean |
Implements
ICollection<KeyValuePair<String, String>>.CopyTo(KeyValuePair<String, String>[], Int32)
Declaration
void ICollection<KeyValuePair<string, string>>.CopyTo(KeyValuePair<string, string>[] array, int arrayIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.KeyValuePair<System.String, System.String>[] | array | |
System.Int32 | arrayIndex |
Implements
ICollection<KeyValuePair<String, String>>.Remove(KeyValuePair<String, String>)
Declaration
bool ICollection<KeyValuePair<string, string>>.Remove(KeyValuePair<string, string> item)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.KeyValuePair<System.String, System.String> | item |
Returns
Type | Description |
---|---|
System.Boolean |
Implements
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |