Dreamine.MVVM.Attributes 1.0.7
Dreamine.MVVM.Attributes 프로젝트의 API와 구성 요소를 제공합니다.
로딩중...
검색중...
일치하는것 없음
DreamineCommandAttribute.cs
이 파일의 문서화 페이지로 가기
1using System;
2
4{
35 [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
36 public sealed class DreamineCommandAttribute : Attribute
37 {
46 public string? TargetMethod { get; }
47
64 public string? BindTo { get; set; }
65
82 public string? CommandName { get; set; }
83
106 public string? CanExecute { get; set; }
107
117 {
118 }
119
144 public DreamineCommandAttribute(string targetMethod)
145 {
146 TargetMethod = targetMethod ?? throw new ArgumentNullException(nameof(targetMethod));
147 }
148 }
149}
DreamineCommandAttribute(string targetMethod)
DreamineCommandAttribute 클래스의 새 인스턴스를 초기화합니다.
string? CanExecute
실행 가능 여부를 판단하는 메서드 이름을 가져오거나 설정합니다.
string? CommandName
생성될 커맨드 프로퍼티 이름을 가져오거나 설정합니다.
string? BindTo
대상 메서드의 반환값을 자동 대입할 프로퍼티 이름을 가져오거나 설정합니다.
DreamineCommandAttribute()
DreamineCommandAttribute 클래스의 새 인스턴스를 초기화합니다.
string? TargetMethod
호출할 대상 메서드 경로를 가져옵니다.