ServiceSettingsDictionary Class

Definition

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.

[System.Serializable]
public class ServiceSettingsDictionary : System.Collections.Generic.Dictionary<string,string>
[<System.Serializable>]
type ServiceSettingsDictionary = class
    inherit Dictionary<string, string>
Public Class ServiceSettingsDictionary
Inherits Dictionary(Of String, String)
Inheritance
ServiceSettingsDictionary
Attributes

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.

Constructors

ServiceSettingsDictionary()

Initializes a new instance of the ServiceSettingsDictionary class.

ServiceSettingsDictionary(SerializationInfo, StreamingContext)

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

Properties

AzureActiveDirectoryAudience

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

AzureActiveDirectoryClientId

Gets or sets the Azure Active Directory client ID.

AzureActiveDirectoryDomain

Gets the current Azure Active Directory DNS domain name based on ServiceDomainSuffix

AzureActiveDirectoryTenants

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

Connections

Gets the set of connection strings for the service.

CrossDomainOrigins

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

FacebookAppId

Gets or sets the Facebook ID associated with this service.

FacebookScope

Gets or sets the Facebook scope associated with this service. One or more values can be specified, separated by spaces.

FacebookSecret

Gets or sets the Facebook secret associated with this service.

GoogleAppId

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

GoogleScope

Gets or sets the Google scope associated with this service. One or more values can be specified, separated by spaces.

GoogleSecret

Gets or sets the Google secret associated with this service.

IsAzureActiveDirectoryAuthenticationEnabled

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

IsFacebookAuthenticationEnabled

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

IsGoogleAuthenticationEnabled

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

IsMicrosoftAccountAuthenticationEnabled

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

IsTwitterAuthenticationEnabled

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

Item[String]

Gets or sets the value associated with the specified key.

Key

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

MasterKey

Gets or sets the application master key.

MicrosoftAccountAudience

Gets or sets the Microsoft Account audience used for token validation.

MicrosoftAccountClientId

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

MicrosoftAccountClientSecret

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

MicrosoftAccountScope

Gets or sets the Microsoft Account scope associated with this service. One or more values can be specified, separated by spaces.

MicrosoftPackageSID

Gets or sets the Microsoft Package SID associated with this service.

Name

Gets or sets the name of the service.

NotificationHubName

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

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.

ServiceDomainSuffix

Gets or sets the Service DNS domain name suffix relevant to the environment, e.g. azure-mobile.net or azure-mobile.cn

SkipVersionCheck

Gets a value indicating whether calls with a ZUMO-API-VERSION on them are allowed.

SubscriptionId

Gets or sets the SubscriptionId of the service.

TwitterConsumerKey

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

TwitterConsumerSecret

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

Methods

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.

Applies to