SenseNet.ContentRepository.TemplateManager.GetProperty C# (CSharp) Method

GetProperty() public static method

public static GetProperty ( GenericContent content, string propertyName ) : string
content GenericContent
propertyName string
return string
        public static string GetProperty(GenericContent content, string propertyName)
        {
            if (content == null)
                return string.Empty;
            if (string.IsNullOrEmpty(propertyName))
                return content.Id.ToString();

            var value = content.GetProperty(propertyName);
            return value == null ? string.Empty : value.ToString();
        }

Same methods

TemplateManager::GetProperty ( Node node, string propertyName ) : string