Пример #1
0
        public SPOTermLabel(Label label, SPOTerm term)
        {
            _label = label;
            _term = term;

            if (_label.IsPropertyAvailable("Value"))
                SetProp("Value", _label.Value, false);
        }
Пример #2
0
        public SPOTermLabel(Label label, SPOTerm term)
        {
            _label = label;
            _term  = term;

            if (_label.IsPropertyAvailable("Value"))
            {
                SetProp("Value", _label.Value, false);
            }
        }
Пример #3
0
        //public LabelCollection Labels { get; }


        public override void Refresh()
        {
            _term.RefreshLoad();
            _term.Context.ExecuteQuery();
            base.Refresh();

            _reusedTerms      = null;
            _pinSourceTermSet = null;
            _sourceTerm       = null;
            _parentTerm       = null;
            _termSets         = null;
            _termSet          = null;
            _labels           = null;
        }
Пример #4
0
        public SPOTerm GetSourceTerm()
        {
            if (_sourceTerm != null)
            {
                return(_sourceTerm);
            }

            var sourceTerm = _term.SourceTerm;

            _term.Context.Load(sourceTerm);
            _term.Context.ExecuteQuery();

            _sourceTerm = new SPOTerm(sourceTerm);
            return(_sourceTerm);
        }
Пример #5
0
        public SPOTerm GetParentTerm()
        {
            if (_parentTerm != null)
            {
                return(_parentTerm);
            }

            var parentTerm = _term.Parent;

            _term.Context.Load(parentTerm);
            _term.Context.ExecuteQuery();

            _parentTerm = new SPOTerm(parentTerm);
            return(_parentTerm);
        }
Пример #6
0
        //public LabelCollection Labels { get; }
        public override void Refresh()
        {
            _term.RefreshLoad();
            _term.Context.ExecuteQuery();
            base.Refresh();

            _reusedTerms = null;
            _pinSourceTermSet = null;
            _sourceTerm = null;
            _parentTerm = null;
            _termSets = null;
            _termSet = null;
            _labels = null;
        }
Пример #7
0
        public SPOTerm GetSourceTerm()
        {
            if (_sourceTerm != null) return _sourceTerm;

            var sourceTerm = _term.SourceTerm;
            _term.Context.Load(sourceTerm);
            _term.Context.ExecuteQuery();

            _sourceTerm = new SPOTerm(sourceTerm);
            return _sourceTerm;
        }
Пример #8
0
        public SPOTerm GetParentTerm()
        {
            if (_parentTerm != null) return _parentTerm;

            var parentTerm = _term.Parent;
            _term.Context.Load(parentTerm);
            _term.Context.ExecuteQuery();

            _parentTerm = new SPOTerm(parentTerm);
            return _parentTerm;
        }