ShareFactoryCreateDefaults Method (IContext, ShareObjectType, Int32, IUser, NullableInt32) |
Creates default sharing
Namespace:
AskiaPortalCmn
Assembly:
AskiaPortalCmn (in AskiaPortalCmn.dll) Version: 1.7.0-build068
Syntax public static IReturnValue CreateDefaults(
IContext context,
ShareObjectType objectType,
int objectId,
IUser user,
Nullable<int> surveyId = null
)
Public Shared Function CreateDefaults (
context As IContext,
objectType As ShareObjectType,
objectId As Integer,
user As IUser,
Optional surveyId As Nullable(Of Integer) = Nothing
) As IReturnValue
public:
static IReturnValue^ CreateDefaults(
IContext^ context,
ShareObjectType objectType,
int objectId,
IUser^ user,
Nullable<int> surveyId = nullptr
)
Parameters
- context
- Type: AskiaPortalCmnIContext
Execution context - objectType
- Type: AskiaPortalCmnShareObjectType
Type of the shared object - objectId
- Type: SystemInt32
Id of the shared object - user
- Type: AskiaPortalCmnIUser
The user - surveyId (Optional)
- Type: SystemNullableInt32
Id of the survey
Return Value
Type:
IReturnValue
Returns success result when the process was successfully done.
See Also