• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# ApplyTo类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: GetValueForCopy

 public static string GetValueForCopy(ApplyTo.Copy applyTo)
 {
     switch (applyTo)
     {
         case ApplyTo.Copy.ResourceOnly:
             return "0";
         case ApplyTo.Copy.ResourceAndAncestors:
             return "infinity";
         default:
             throw new InvalidEnumArgumentException("applyTo", (int)applyTo, typeof(ApplyTo.Copy));
     }
 }
开发者ID:skazantsev,项目名称:WebDavClient,代码行数:12,代码来源:DepthHeaderHelper.cs


示例2: GetValueForPropfind

 public static string GetValueForPropfind(ApplyTo.Propfind applyTo)
 {
     switch (applyTo)
     {
         case ApplyTo.Propfind.ResourceOnly:
             return "0";
         case ApplyTo.Propfind.ResourceAndChildren:
             return "1";
         case ApplyTo.Propfind.ResourceAndAncestors:
             return "infinity";
         default:
             throw new InvalidEnumArgumentException("applyTo", (int)applyTo, typeof(ApplyTo.Propfind));
     }
 }
开发者ID:skazantsev,项目名称:WebDavClient,代码行数:14,代码来源:DepthHeaderHelper.cs


示例3: RequiresAnyPermissionAttribute

 /// <summary>Initializes a new instance of the NServiceKit.ServiceInterface.RequiresAnyPermissionAttribute class.</summary>
 ///
 /// <param name="applyTo">    The apply to.</param>
 /// <param name="permissions">A variable-length parameters list containing permissions.</param>
 public RequiresAnyPermissionAttribute(ApplyTo applyTo, params string[] permissions)
 {
     this.RequiredPermissions = permissions.ToList();
     this.ApplyTo = applyTo;
     this.Priority = (int)RequestFilterPriority.RequiredPermission;
 }
开发者ID:Qasemt,项目名称:NServiceKit,代码行数:10,代码来源:RequiresAnyPermission.cs


示例4: WebSudoRequiredAttribute

 public WebSudoRequiredAttribute(ApplyTo applyTo)
 {
     this.ApplyTo = applyTo;
     this.Priority = -79;
 }
开发者ID:AVee,项目名称:ServiceStack,代码行数:5,代码来源:WebSudoRequiredAttribute.cs


示例5: AuthenticateAttribute

 public AuthenticateAttribute(ApplyTo applyTo)
 {
     this.ApplyTo = applyTo;
 }
开发者ID:corneliutusnea,项目名称:ServiceStack,代码行数:4,代码来源:AuthenticateAttribute.cs


示例6: AuthenticateAttribute

 public AuthenticateAttribute(ApplyTo applyTo, string provider)
     : this(applyTo)
 {
     this.Provider = provider;
 }
开发者ID:tystol,项目名称:ServiceStack,代码行数:5,代码来源:AuthenticateAttribute.cs


示例7: RequestFilterAttribute

 /// <summary>
 /// Creates a new <see cref="RequestFilterAttribute"/>
 /// </summary>
 /// <param name="applyTo">Defines when the filter should be executed</param>
 public RequestFilterAttribute(ApplyTo applyTo)
 {
     ApplyTo = applyTo;
 }
开发者ID:ELHANAFI,项目名称:ServiceStack,代码行数:8,代码来源:RequestFilterAttribute.cs


示例8: RequiredRoleAttribute

 public RequiredRoleAttribute(ApplyTo applyTo, params string[] roles)
 {
     this.RequiredRoles = roles.ToList();
     this.ApplyTo = applyTo;
 }
开发者ID:niemyjski,项目名称:ServiceStack,代码行数:5,代码来源:RequiredRoleAttribute.cs


示例9: AuthenticateAttribute

 public AuthenticateAttribute(ApplyTo applyTo)
     : base(applyTo)
 {
 }
开发者ID:niemyjski,项目名称:ServiceStack,代码行数:4,代码来源:AuthenticateAttribute.cs


示例10: RequiresAuthenticateAttribute

		public RequiresAuthenticateAttribute(ApplyTo applyTo, string provider)
			: this(applyTo)	{}
开发者ID:angelcolmenares,项目名称:Aicl.Colmetrik,代码行数:2,代码来源:RequiresAuthenticateAttribute.cs


示例11: Run

 protected virtual object Run(RoutePriority request, ApplyTo method)
 {
     return request.AsTypeString();
 }
开发者ID:AVee,项目名称:ServiceStack,代码行数:4,代码来源:RoutePriorityTests.cs


示例12: PermissionAttribute

		public PermissionAttribute(ApplyTo applyTo, params string[] permissions):base(applyTo, permissions)
		{
		}
开发者ID:angelcolmenares,项目名称:Aicl.Delfin,代码行数:3,代码来源:PermissionAttribute.cs


示例13: HttpHeaderAttribute

 /// <summary>
 /// Initializes a new instance of the <see cref="HttpHeaderAttribute"/>
 /// class that applies to the HTTP  methods defined by the flag
 /// <paramref name="apply_to"/> and uses the default authentication
 /// challenge.
 /// </summary>
 /// <param name="apply_to">
 /// A flag that indicates for which method this attribute should be applied.
 /// </param>
 public HttpHeaderAttribute(ApplyTo apply_to) : base(apply_to) {
   Value = string.Empty;
 }
开发者ID:joethinh,项目名称:nohros-must,代码行数:12,代码来源:HttpHeaderAttribute.cs


示例14: ResponseFilterAttribute

 /// <summary>
 /// Creates a new <see cref="ResponseFilterAttribute"/>
 /// </summary>
 /// <param name="applyTo">Defines when the filter should be executed</param>
 public ResponseFilterAttribute(ApplyTo applyTo)
 {
     ApplyTo = applyTo;
 }
开发者ID:half-evil,项目名称:ServiceStack,代码行数:8,代码来源:ResponseFilterAttribute.cs


示例15: RequiredPermissionAttribute

 public RequiredPermissionAttribute(ApplyTo applyTo, params string[] permissions)
 {
     this.RequiredPermissions = permissions.ToList();
     this.ApplyTo = applyTo;
 }
开发者ID:austinvernsonger,项目名称:ServiceStack,代码行数:5,代码来源:RequiredPermissionAttribute.cs


示例16: ResponseFilterAttribute

 public ResponseFilterAttribute()
 {
     ApplyTo = ApplyTo.All;
 }
开发者ID:grammarware,项目名称:fodder,代码行数:4,代码来源:src_ServiceStack_ServiceInterface_ResponseFilterAttribute.cs


示例17: RoleAttribute

		public RoleAttribute(ApplyTo applyTo, params string[] roles)
			:base(applyTo, roles) {}
开发者ID:angelcolmenares,项目名称:Aicl.Delfin,代码行数:2,代码来源:RoleAttribute.cs


示例18: RequiredRoleAttribute

 public RequiredRoleAttribute(ApplyTo applyTo, params string[] roles)
 {
     this.RequiredRoles = roles.ToList();
     this.ApplyTo = applyTo;
     this.Priority = (int) RequestFilterPriority.RequiredRole;
 }
开发者ID:qqqzhch,项目名称:ServiceStack,代码行数:6,代码来源:RequiredRoleAttribute.cs


示例19: SecuredAttribute

 public SecuredAttribute(ApplyTo applyTo)
     : base(applyTo)
 {
 }
开发者ID:jrmitch120,项目名称:HomerunLeague,代码行数:4,代码来源:SecuredAttribute.cs


示例20: Setup

			public override void Setup(TransitionBase.ParametersBase defaults) {

				var param = defaults as Parameters;
				if (param == null) return;

				// Place params installation here
				this.inState = new State(param.inState);
                this.outState = new State(param.outState);
                this.resetState = new State(param.resetState);

				this.moveRoot = param.moveRoot;

				this.stateApply = param.stateApply;

			}
开发者ID:RuFengLau,项目名称:Unity3d.UI.Windows,代码行数:15,代码来源:WindowAnimationTransitionSlide.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# ApplyTween类代码示例发布时间:2022-05-24
下一篇:
C# ApplicationViewState类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap