[This is preliminary documentation and is subject to change.]
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
public DirectiveControlDirectiveClass GetDirectivesApplicable( ConnectionId connectionId, SessionId sessionId, int objectId, CSFileObjectTypes objectType )
Public Function GetDirectivesApplicable ( connectionId As ConnectionId, sessionId As SessionId, objectId As Integer, objectType As CSFileObjectTypes ) As DirectiveControlDirectiveClass()
- Type: ContentStudioConnectionId
A value that identifies the web site
- Type: ContentStudio.SecuritySessionId
A value that identifies the user's session. This value usually originates from a call to OpenSession(ConnectionId).
- Type: SystemInt32
The object to get directives for.
- Type: ContentStudio.DocumentCSFileObjectTypes
The type of Content Studio object referenced by the objectId parameter
Return ValueType: DirectiveControlDirectiveClass
A list of DirectiveControlDirectiveClass objects that describes directives applicable for a particular Content Studio file system object
This method is new in Content Studio 5.4.
This method calculates the type of object being specified to determine which directives are applicable with the object specified. Some types of object categories and documents cannot have directives, this includes
- Uploaded files
- Active Scripting
- Ept documents
- Documents that are not User controls, Master pages or Aspx documents
For regular documents, the following restrictions applies
- Master pages (file extension .master) cannot have
- User controls (file extension .ascx) cannot have
- Regular documents (file extension .aspx) cannot have
- Other document types do not have any directives
Units and the Site root have no restrictions.
Documents and categories that are located or are children of any of the protected system categories cannot have directives. These are: