Click or drag to resize
ContentProviderGetSingleNodeContent Method (String, String, String, Boolean, String, String, Boolean, Boolean)
Returns node content after using specified transformation.

Namespace: CMS.Controls
Assembly: CMS.Controls (in CMS.Controls.dll) Version: 8.2.23
Syntax
C#
public string GetSingleNodeContent(
	string siteName,
	string path,
	string culture,
	bool combineWithDefCulture,
	string className,
	string transformationName = null,
	bool selectOnlyPublished = false,
	bool checkPermissions = false
)

Parameters

siteName
Type: SystemString
Site name
path
Type: SystemString
Node path
culture
Type: SystemString
Culture code
combineWithDefCulture
Type: SystemBoolean
Combine with default culture
className
Type: SystemString
Class name (can be empty, but it's faster if you specify it)
transformationName (Optional)
Type: SystemString
Transformation name in format application.class.transformation
selectOnlyPublished (Optional)
Type: SystemBoolean
Indicates if only published documents should be returned. Default value is false and all documents are returned
checkPermissions (Optional)
Type: SystemBoolean
If true, the method will return only those nodes that can be read by current user

Return Value

Type: String
See Also