adTempus API
ArcanaDevelopment.adTempus.Client Namespace / DataContext Class / CreateObject(ClassID) Method
The ID of the class to create.


In This Topic
    CreateObject(ClassID) Method
    In This Topic
    Creates an object of the specified class.
    Syntax
    'Declaration
     
    
    <NotNullAttribute()>
    Public Function CreateObject( _
       ByVal cid As ClassID _
    ) As ADTObject
    [NotNull()]
    public ADTObject CreateObject( 
       ClassID cid
    )
    [NotNull()]
    public:
    ADTObject^ CreateObject( 
       ClassID cid
    ) 

    Parameters

    cid
    The ID of the class to create.

    Return Value

    A new object of the specified class.
    Exceptions
    ExceptionDescription
    Thrown if the caller does not have permission to create objects of the specified type.
    Remarks
    When you call this method to create a new Job or JobGroup, the new object will be created in the Root group. If the caller does not have permission to create jobs/groups in the Root group, the call will fail with a PermissionDeniedException. To avoid this, use JobGroup.NewJob and NewGroup instead, to create the new job or group directly in the target group.
    See Also