コード例 #1
0
		internal PropertyResult(IPublishedProperty source, PropertyResultType type)
        {
    		if (source == null) throw new ArgumentNullException("source");
            
            _type = type;
            _source = source;
        }
コード例 #2
0
		internal PropertyResult(IPublishedContentProperty source, PropertyResultType type)
        {
    		if (source == null) throw new ArgumentNullException("source");

    		Alias = source.Alias;
			Value = source.Value;
			Version = source.Version;
			PropertyType = type;
        }
コード例 #3
0
		internal PropertyResult(string alias, object value, PropertyResultType type)
        {
        	if (alias == null) throw new ArgumentNullException("alias");
        	if (value == null) throw new ArgumentNullException("value");

            _type = type;
            _alias = alias;
			_value = value;
        }
コード例 #4
0
		internal PropertyResult(string alias, object value, Guid version, PropertyResultType type)
        {
        	if (alias == null) throw new ArgumentNullException("alias");
        	if (value == null) throw new ArgumentNullException("value");

        	Alias = alias;
			Value = value;
            Version = version;
        	PropertyType = type;
        }
コード例 #5
0
        internal PropertyResult(IPublishedProperty source, PropertyResultType type)
        {
            if (source == null)
            {
                throw new ArgumentNullException("source");
            }

            _type   = type;
            _source = source;
        }
コード例 #6
0
ファイル: PropertyResult.cs プロジェクト: KerwinMa/Umbraco
        internal PropertyResult(IPublishedContentProperty source, PropertyResultType type)
        {
            if (source == null)
            {
                throw new ArgumentNullException("source");
            }

            Alias        = source.Alias;
            Value        = source.Value;
            Version      = source.Version;
            PropertyType = type;
        }
コード例 #7
0
        internal PropertyResult(string alias, object value, PropertyResultType type)
        {
            if (alias == null)
            {
                throw new ArgumentNullException("alias");
            }
            if (value == null)
            {
                throw new ArgumentNullException("value");
            }

            _type  = type;
            _alias = alias;
            _value = value;
        }
コード例 #8
0
ファイル: PropertyResult.cs プロジェクト: KerwinMa/Umbraco
        internal PropertyResult(string alias, object value, Guid version, PropertyResultType type)
        {
            if (alias == null)
            {
                throw new ArgumentNullException("alias");
            }
            if (value == null)
            {
                throw new ArgumentNullException("value");
            }

            Alias        = alias;
            Value        = value;
            Version      = version;
            PropertyType = type;
        }