C# Класс Smartsheet.Api.Models.Share.CreateShareBuilder

A convenience class for creating a Share with the necessary fields for sharing the sheet To one user.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Build ( ) : Share

Builds the Share object.

CreateShareBuilder ( long groupId, AccessLevel accessLevel ) : System

Sets the required properties for sharing to a Group.

CreateShareBuilder ( string email, AccessLevel accessLevel ) : System

Sets the required properties for sharing to a User.

GetAccessLevel ( ) : AccessLevel?

Gets the access level.

GetCcMe ( ) : bool?

Gets the CcMe.

GetEmail ( ) : string

Gets the Email.

GetGroupId ( ) : long?

Gets the GroupId.

GetMessage ( ) : string

Gets the Message.

GetSubject ( ) : string

Gets the Subject.

SetAccessLevel ( AccessLevel accessLevel ) : CreateShareBuilder

(required) Access level for this specific share.

SetAccessLevel ( string message ) : CreateShareBuilder

(optional): The message to be included in the body of the email that will optionally be sent to the recipient.

SetCcMe ( bool ccMe ) : CreateShareBuilder

(optional): Boolean flag to indicate whether or not to CC the user sharing the sheet.

SetEmail ( string email ) : CreateShareBuilder

(optional) Email address for this specific share. NOTE: One of email or groupId must be specified, but not both.

SetGroupId ( long groupId ) : CreateShareBuilder

the group share recipient’s group ID. NOTE: One of email or groupId must be specified, but not both.

SetSubject ( string subject ) : CreateShareBuilder

(optional): The subject of the email that will optionally be sent to notify the recipient.

Описание методов

Build() публичный Метод

Builds the Share object.
public Build ( ) : Share
Результат Share

CreateShareBuilder() публичный Метод

Sets the required properties for sharing to a Group.
public CreateShareBuilder ( long groupId, AccessLevel accessLevel ) : System
groupId long the group ID
accessLevel AccessLevel the Access Level
Результат System

CreateShareBuilder() публичный Метод

Sets the required properties for sharing to a User.
public CreateShareBuilder ( string email, AccessLevel accessLevel ) : System
email string the email of the User
accessLevel AccessLevel the Access Level
Результат System

GetAccessLevel() публичный Метод

Gets the access level.
public GetAccessLevel ( ) : AccessLevel?
Результат AccessLevel?

GetCcMe() публичный Метод

Gets the CcMe.
public GetCcMe ( ) : bool?
Результат bool?

GetEmail() публичный Метод

Gets the Email.
public GetEmail ( ) : string
Результат string

GetGroupId() публичный Метод

Gets the GroupId.
public GetGroupId ( ) : long?
Результат long?

GetMessage() публичный Метод

Gets the Message.
public GetMessage ( ) : string
Результат string

GetSubject() публичный Метод

Gets the Subject.
public GetSubject ( ) : string
Результат string

SetAccessLevel() публичный Метод

(required) Access level for this specific share.
public SetAccessLevel ( AccessLevel accessLevel ) : CreateShareBuilder
accessLevel AccessLevel the access level
Результат CreateShareBuilder

SetAccessLevel() публичный Метод

(optional): The message to be included in the body of the email that will optionally be sent to the recipient.
public SetAccessLevel ( string message ) : CreateShareBuilder
message string the message
Результат CreateShareBuilder

SetCcMe() публичный Метод

(optional): Boolean flag to indicate whether or not to CC the user sharing the sheet.
public SetCcMe ( bool ccMe ) : CreateShareBuilder
ccMe bool the ccMe
Результат CreateShareBuilder

SetEmail() публичный Метод

(optional) Email address for this specific share. NOTE: One of email or groupId must be specified, but not both.
public SetEmail ( string email ) : CreateShareBuilder
email string the Email
Результат CreateShareBuilder

SetGroupId() публичный Метод

the group share recipient’s group ID. NOTE: One of email or groupId must be specified, but not both.
public SetGroupId ( long groupId ) : CreateShareBuilder
groupId long the groupId
Результат CreateShareBuilder

SetSubject() публичный Метод

(optional): The subject of the email that will optionally be sent to notify the recipient.
public SetSubject ( string subject ) : CreateShareBuilder
subject string the subject
Результат CreateShareBuilder