CreateShare Method
Creates a new share.
Syntax
public fun createShare()
Remarks
This method creates a new share using the name specified by the Share property.
If the CreateShareQuota configuration setting is a positive, non-zero integer when this method is called, the share will be created with a space quota of that many GB. A share's space quota may be changed at any time using the SetShareQuota method.
If the SendMetadata configuration setting is enabled when this method is called, all items in the Metadata collection will be sent along with the creation request.
Share Name Rules
Share names must adhere to the following rules:
- Must be 3 to 63 characters long.
- Must start with a letter or number; and may only contain letters, numbers, and hyphens.
- All letters much be lowercase. (For convenience, the component will automatically lowercase all letters in any value assigned to Share.)
- All hyphens must be immediately preceded and followed by a letter or number (consecutive hyphens are not allowed).