Represents the Workspace object which is an area in which Sheets, reports, Templates and sub-Folders can be organized, similar To a folder.
Inheritance: Folder
コード例 #1
0
 /// <summary>
 /// Builds the <seealso cref="Workspace"/>.
 /// </summary>
 /// <returns> the workspace </returns>
 public virtual Workspace Build()
 {
     Workspace workspace = new Workspace();
     workspace.Name = workspaceName;
     return workspace;
 }
コード例 #2
0
            ///// <summary>
            ///// The Name of the workspace.
            ///// </summary>
            ///// <param name="name"> the Name </param>
            ///// <returns> the update workspace builder </returns>
            //public virtual UpdateWorkspaceBuilder SetName(string name)
            //{
            //    this.workspaceName = name;
            //    return this;
            //}
            ///// <summary>
            ///// Gets the Name.
            ///// </summary>
            ///// <returns> the Name </returns>
            //public virtual string Name
            //{
            //    get
            //    {
            //        return workspaceName;
            //    }
            //}
            /// <summary>
            /// Builds the <seealso cref="Workspace"/>.
            /// </summary>
            /// <returns> the workspace </returns>
            public virtual Workspace Build()
            {
                //if (workspaceName == null)
                //{
                //	throw new InvalidOperationException("A workspace name is required.");
                //}

                Workspace workspace = new Workspace();
                workspace.Id = id;
                workspace.Name = workspaceName;
                return workspace;
            }