SenseNet.ContentRepository.Voting.SetProperty C# (CSharp) Метод

SetProperty() публичный Метод

Sets the given property's value by name.
public SetProperty ( string name, object value ) : void
name string The name.
value object The value.
Результат void
        public override void SetProperty(string name, object value)
        {
            switch (name)
            {
                case "IsResultVisibleBefore":
                    this.IsResultVisibleBefore = Convert.ToBoolean(value);
                    break;
                case "ResultPageContentView":
                    this.ResultPageContentView = value as Node;
                    break;
                case "VotingPageContentView":
                    this.VotingPageContentView = value as Node;
                    break;
                case "CannotSeeResultContentView":
                    this.CannotSeeResultContentView = value as Node;
                    break;
                default: base.SetProperty(name, value);
                    break;
            }
        }