ServiceSettingsDictionary Class

 

Contains settings for a service such as the name, authentication provider information, connection strings, etc. The ServiceSettingsDictionary provides typed properties for known settings such as Name and Key as well as IDictionary<TKey, TValue> access for all other settings.

Namespace:   Microsoft.WindowsAzure.Mobile.Service
Assembly:  Microsoft.WindowsAzure.Mobile.Service (in Microsoft.WindowsAzure.Mobile.Service.dll)

Inheritance Hierarchy

System.Object
  System.Collections.Generic.Dictionary<TKey, TValue>
    Microsoft.WindowsAzure.Mobile.Service.ServiceSettingsDictionary

Syntax

[SerializableAttribute]
[DefaultMemberAttribute("Item")]
public class ServiceSettingsDictionary : Dictionary<string, string>
[SerializableAttribute]
[DefaultMemberAttribute("Item")]
public ref class ServiceSettingsDictionary : Dictionary<String^, String^>
[<SerializableAttribute>]
[<DefaultMemberAttribute("Item")>]
type ServiceSettingsDictionary = 
    class
        inherit Dictionary<string, string>
    end
<SerializableAttribute>
<DefaultMemberAttribute("Item")>
Public Class ServiceSettingsDictionary
    Inherits Dictionary(Of String, String)

Constructors

Name Description
System_CAPS_pubmethod ServiceSettingsDictionary()

Initializes a new instance of the ServiceSettingsDictionary class.

System_CAPS_protmethod ServiceSettingsDictionary(SerializationInfo, StreamingContext)

Initializes a new instance of the ServiceSettingsDictionary class with the specified serialization information and streaming context.

Properties

Name Description
System_CAPS_pubproperty AzureActiveDirectoryAudience

Gets or sets the Azure Active Directory audience used for token validation.

System_CAPS_pubproperty AzureActiveDirectoryClientId

Gets or sets the Azure Active Directory client ID.

System_CAPS_pubproperty AzureActiveDirectoryTenants

Gets or sets a comma separated list of allowed AAD tenants. These should be specified as tenant domain names.

System_CAPS_pubproperty Comparer

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubproperty Connections

Gets the set of connection strings for the service.

System_CAPS_pubproperty Count

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubproperty CrossDomainOrigins

Gets or sets a comma-separated list of origins that are allowed to access the resource.

System_CAPS_pubproperty FacebookAppId

Gets or sets the Facebook ID associated with this service.

System_CAPS_pubproperty FacebookSecret

Gets or sets the Facebook secret associated with this service.

System_CAPS_pubproperty GoogleAppId

Gets or sets the Google application ID associated with this service.

System_CAPS_pubproperty GoogleSecret

Gets or sets the Google secret associated with this service.

System_CAPS_pubproperty IsAzureActiveDirectoryAuthenticationEnabled

Gets a value indicating whether Azure Active Directory authentication is enabled for this service.

System_CAPS_pubproperty IsFacebookAuthenticationEnabled

Gets a value indicating whether Facebook authentication is enabled for this service.

System_CAPS_pubproperty IsGoogleAuthenticationEnabled

Gets a value indicating whether Google authentication is enabled for this service.

System_CAPS_pubproperty IsMicrosoftAccountAuthenticationEnabled

Gets a value indicating whether Microsoft Account authentication is enabled for this service.

System_CAPS_pubproperty IsTwitterAuthenticationEnabled

Gets a value indicating whether Twitter authentication is enabled for this service.

System_CAPS_pubproperty Item[String]

Gets or sets the value associated with the specified key.

System_CAPS_pubproperty Key

Gets or sets the service key (a.k.a. application key).

System_CAPS_pubproperty Keys

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubproperty MasterKey

Gets or sets the application master key.

System_CAPS_pubproperty MicrosoftAccountClientId

Gets or sets the Microsoft Account client ID associated with this service.

System_CAPS_pubproperty MicrosoftAccountClientSecret

Gets or sets the Microsoft Account client secret associated with this service.

System_CAPS_pubproperty Name

Gets or sets the name of the service.

System_CAPS_pubproperty NotificationHubName

Gets or sets the name of the Notification Hub associated with this service for handling push notifications.

System_CAPS_pubproperty Schema

Gets or sets the default database schema name. This default database schema name is used for database objects that do not have an explicitly configured schema name.

System_CAPS_pubproperty SubscriptionId

Gets or sets the SubscriptionId of the service.

System_CAPS_pubproperty TwitterConsumerKey

Gets or sets the Twitter consumer key associated with this service.

System_CAPS_pubproperty TwitterConsumerSecret

Gets or sets the Twitter consumer secret associated with this service.

System_CAPS_pubproperty Values

(Inherited from Dictionary<TKey, TValue>.)

Methods

Name Description
System_CAPS_pubmethod Add(TKey, TValue)

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubmethod Clear()

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubmethod ContainsKey(TKey)

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubmethod ContainsValue(TValue)

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetEnumerator()

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetObjectData(SerializationInfo, StreamingContext)

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubmethodSystem_CAPS_static GetSchemaName()

Gets the Database schema name from configuration. If an application setting with the key MS_TableSchema is set then that is used. Otherwise, if a setting with the key MS_MobileServiceName with set then that is used.

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod OnDeserialization(Object)

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubmethod Remove(TKey)

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod TryGetValue(TKey, TValue)

(Inherited from Dictionary<TKey, TValue>.)

Explicit Interface Implementations

Name Description
System_CAPS_pubinterfaceSystem_CAPS_privmethod ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue>)

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue>)

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[], Int32)

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue>)

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod ICollection.CopyTo(Array, Int32)

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IDictionary.Add(Object, Object)

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IDictionary.Contains(Object)

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IDictionary.GetEnumerator()

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IDictionary.Remove(Object)

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IEnumerable.GetEnumerator()

(Inherited from Dictionary<TKey, TValue>.)

Remarks

Any property values set on an instance will only stay in effect for the lifetime of the current AppDomain. To change the settings in a persistent manner, please update them using a mechanism provided by the service host.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.WindowsAzure.Mobile.Service Namespace

Return to top