当前位置: 首页>>代码示例>>C#>>正文


C# Provider.ProviderBase类代码示例

本文整理汇总了C#中System.Configuration.Provider.ProviderBase的典型用法代码示例。如果您正苦于以下问题:C# ProviderBase类的具体用法?C# ProviderBase怎么用?C# ProviderBase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ProviderBase类属于System.Configuration.Provider命名空间,在下文中一共展示了ProviderBase类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Add

 // adds a viewstate provider to a collection of providers.
 
 public override void Add(ProviderBase provider)
 {
     if (provider != null && provider is ViewStateProviderBase)
     {
         base.Add(provider);
     }
 }
开发者ID:tuansolo,项目名称:CodeBase,代码行数:9,代码来源:ViewStateProviderCollection.cs

示例2: Add

		public override void Add (ProviderBase provider)
		{
			if (provider is RoleProvider)
				base.Add (provider);
			else
				throw new HttpException ();
		}
开发者ID:nlhepler,项目名称:mono,代码行数:7,代码来源:RoleProviderCollection.cs

示例3: Add

 public override void Add(ProviderBase provider)
 {
     if (provider == null)
         throw new ArgumentNullException("provider");
     if (!(provider is DirectoryNumberAnalysorProvider))
         throw new ArgumentException("Invalid provider type", "provider");
     base.Add(provider);
 }
开发者ID:gnomix,项目名称:T.A.L.K.,代码行数:8,代码来源:DirectoryNumberAnalysorProvider.cs

示例4: Add

 /// <summary>
 /// Adds a provider to the collection.
 /// </summary>
 /// <param name="provider">The provider to be added.</param>
 /// <exception cref="T:System.NotSupportedException">The collection is read-only.</exception>
 /// <exception cref="T:System.ArgumentNullException">
 /// 	<paramref name="provider"/> is null.</exception>
 /// <exception cref="T:System.ArgumentException">The <see cref="P:System.Configuration.Provider.ProviderBase.Name"/> of <paramref name="provider"/> is null.- or -The length of the <see cref="P:System.Configuration.Provider.ProviderBase.Name"/> of <paramref name="provider"/> is less than 1.</exception>
 /// <PermissionSet>
 /// 	<IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="UnmanagedCode, ControlEvidence"/>
 /// </PermissionSet>
 public override void Add(ProviderBase provider)
 {
     if (provider == null)
         throw new ArgumentNullException("provider");
     if (!(provider is OAuthServiceBase))
         throw new ArgumentException("Provider must implement OAuthServiceBase.");
     base.Add(provider);
 }
开发者ID:modulexcite,项目名称:snip2codeNET,代码行数:19,代码来源:OAuthServiceCollection.cs

示例5: Add

 public override void Add(ProviderBase provider)
 {
     if (provider == null)
         throw new ArgumentNullException("provider");
     if (!(provider is CallLogsProvider))
         throw new ArgumentException("Invalid provider type", "provider");
     base.Add(provider);
 }
开发者ID:gnomix,项目名称:T.A.L.K.,代码行数:8,代码来源:CallLogsProvider.cs

示例6: Add

		public override void Add (ProviderBase provider)
		{
			if (!(provider is SettingsProvider))
				throw new ArgumentException ("SettingsProvider is expected");
			if (String.IsNullOrEmpty (provider.Name))
				throw new ArgumentException ("Provider name cannot be null or empty");
			base.Add (provider);
		}
开发者ID:calumjiao,项目名称:Mono-Class-Libraries,代码行数:8,代码来源:SettingsProviderCollection.cs

示例7: Add

 /// <summary>
 /// Adds a provider to the collection.
 /// </summary>
 /// <param name="provider">The provider to be added.</param>
 /// <exception cref="T:System.NotSupportedException">
 /// The collection is read-only.
 /// </exception>
 /// <exception cref="T:System.ArgumentNullException">
 /// 	<paramref name="provider"/> is null.
 /// </exception>
 /// <exception cref="T:System.ArgumentException">
 /// The <see cref="P:System.Configuration.Provider.ProviderBase.Name"/> of <paramref name="provider"/> is null.
 /// - or -
 /// The length of the <see cref="P:System.Configuration.Provider.ProviderBase.Name"/> of <paramref name="provider"/> is less than 1.
 /// </exception>
 /// <PermissionSet>
 /// 	<IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="UnmanagedCode, ControlEvidence"/>
 /// </PermissionSet>
 public override void Add(ProviderBase provider)
 {
     if (provider == null)
         throw new ArgumentNullException("provider");
     if (!(provider is ICacheProvider))
         throw new ArgumentException("Provider must implement ICacheProvider.");
     base.Add(provider);
 }
开发者ID:mattfrerichs,项目名称:Templates,代码行数:26,代码来源:CacheProviderCollection.cs

示例8: Add

 public override void Add(ProviderBase provider)
 {
     if (!(provider is LogProviderBase))
     {
         throw new ArgumentException("the provider is not log provider.");
     }
     base.Add(provider);
 }
开发者ID:0iron0,项目名称:Simon.Provider.Demo,代码行数:8,代码来源:LogProviderCollection.cs

示例9: Add

        public override void Add(ProviderBase provider)
        {
            if (provider == null)
                throw new ArgumentNullException("provider");

            if (provider is CommunityPathProvider == false)
                throw new ArgumentException("Invalid provider type.", "provider");

            base.Add(provider);
        }
开发者ID:nberardi,项目名称:omniportal,代码行数:10,代码来源:CommunityPathProviderCollection.cs

示例10: Add

        public override void Add(ProviderBase provider)
        {
            if (provider == null)
                throw new ArgumentNullException("provider");

            //if (!(provider is DataSourceProvider))
            //    throw new ArgumentException("Invalid provider type", "provider");

            base.Add(provider);
        }
开发者ID:GaryDev,项目名称:webservice-net,代码行数:10,代码来源:DataProviderCollection.cs

示例11: Add

        /// <summary>
        /// 向集合中添加提供程序。
        /// </summary>
        /// <param name="provider">要添加的提供程序。</param>
        public override void Add(ProviderBase provider)
        {
            if (provider == null)
                throw new ArgumentNullException("provider is not null");

            if (!(provider is LoggingProvider))
                throw new ArgumentException("provider must LoggingProvider.");

            base.Add(provider);
        }
开发者ID:felix-tien,项目名称:TechLab,代码行数:14,代码来源:LoggingProviderCollection.cs

示例12: Add

        public override void Add(ProviderBase provider)
        {
            if (provider == null)
                throw new ArgumentNullException("The provider parameter cannot be null.");

            if (!(provider is GCheckoutNotificationHandlerProvider))
                throw new ArgumentException("The provider parameter must be of type GCheckoutNotificationHandlerProvider.");

            base.Add(provider);
        }
开发者ID:joedavis01,项目名称:mojoportal,代码行数:10,代码来源:GCheckoutNotificationHandlerProviderCollection.cs

示例13: Add

		public override void Add(ProviderBase provider)
		{
			if (provider == null)
				throw new ArgumentNullException("provider");

            if (!(provider is WebFormsFileRegistrationProvider))
				throw new ArgumentException("Invalid provider type", "provider");

			base.Add(provider);
		}
开发者ID:dufkaf,项目名称:ClientDependency,代码行数:10,代码来源:FileRegistrationProviderCollection.cs

示例14: Add

		/// <summary>
		/// Add a DAL provider to the collection.
		/// </summary>
		/// <param name="provider">DAL provider data.</param>
		public override void Add(ProviderBase provider)
		{
			if (provider == null)
				throw new ArgumentNullException("provider");

			if (provider is APDalProvider)
				base.Add(provider);
			else
				throw new ArgumentException("provider");
		}
开发者ID:fankluo,项目名称:APQuery.net,代码行数:14,代码来源:APDalProviderCollection.cs

示例15: Add

        public override void Add(ProviderBase provider)
        {
            if (provider == null)
                throw new ArgumentNullException("The provider parameter cannot be null.");

            if (!(provider is PayPalReturnHandlerProvider))
                throw new ArgumentException("The provider parameter must be of type PayPalReturnHandlerProvider.");

            base.Add(provider);
        }
开发者ID:saiesh86,项目名称:TravelBlog,代码行数:10,代码来源:PayPalReturnHandlerProviderCollection.cs


注:本文中的System.Configuration.Provider.ProviderBase类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。