Элементы Web
Represents a Microsoft SharePoint Foundation Web site.
Тип Web предоставляет следующие элементы.
Конструкторы
Имя | Описание | |
---|---|---|
Web | Initializes a new instance of the Web object. |
Вверх
Свойства
Имя | Описание | |
---|---|---|
AllowCreateDeclarativeWorkflowForCurrentUser | ||
AllowDesignerForCurrentUser | Gets a value that specifies whether the current user is allowed to use a designer application to customize this site. | |
AllowMasterPageEditingForCurrentUser | Gets a value that specifies whether the current user is allowed to edit the master page. | |
AllowRevertFromTemplateForCurrentUser | Gets a value that specifies whether the current user is allowed to revert the site to a default site template. | |
AllowRssFeeds | Gets a value that specifies whether the site allows RSS feeds. | |
AllowSaveDeclarativeWorkflowAsTemplateForCurrentUser | ||
AllowSavePublishDeclarativeWorkflowForCurrentUser | ||
AllProperties | Gets a collection of metadata for the Web site. | |
AlternateCssUrl | ||
AppInstanceId | The instance Id of the App Instance that this website represents. | |
AppTiles | ||
AssociatedMemberGroup | Gets the users who have been given contribute permissions to the website. | |
AssociatedOwnerGroup | Gets or sets the associated owner groups of the website. | |
AssociatedVisitorGroup | Gets or sets the associated visitor group of the website. | |
AvailableContentTypes | Gets the collection of all content types that apply to the current scope, including those of the current Web site, as well as any parent Web sites. | |
AvailableFields | Gets a value that specifies the collection of all fields available for the current scope, including those of the current site, as well as any parent sites. | |
Configuration | Gets either the identifier (ID) of the site definition configuration that was used to create the site, or the ID of the site definition configuration from which the site template used to create the site was derived. | |
ContainsConfidentialInfo | ||
ContentTypes | Gets the collection of content types for the Web site. | |
Context | Возвращает контекст, связанное с клиентского объекта. (Унаследовано от ClientObject.) | |
Created | Gets a value that specifies when the site was created. | |
CurrentChangeToken | ||
CurrentUser | Gets the current user of the site. | |
CustomMasterUrl | Gets or sets the URL for a custom master page file to apply to the website. | |
DataLeakagePreventionStatusInfo | ||
Description | Gets or sets the description for the site. | |
DescriptionResource | ||
DesignerDownloadUrlForCurrentUser | ||
DocumentLibraryCalloutOfficeWebAppPreviewersDisabled | Determines if the Document Library Callout's WAC previewers are enabled or not. | |
EffectiveBasePermissions | Gets a value that specifies the effective permissions that are assigned to the current user. | |
EnableMinimalDownload | Gets or sets a Boolean value that specifies whether the Web site should use Minimal Download Strategy. | |
EventReceivers | Gets the collection of event receiver definitions that are currently available on the website. | |
Features | Gets a value that specifies the collection of features that are currently activated in the site. | |
Fields | Gets the collection of field objects that represents all the fields in the Web site. | |
FirstUniqueAncestorSecurableObject | Gets the object where role assignments for this object are defined. (Унаследовано от SecurableObject.) | |
Folders | Gets the collection of all first-level folders in the website. | |
HasUniqueRoleAssignments | Gets a value that specifies whether the role assignments are uniquely defined for this securable object or inherited from a parent securable object. (Унаследовано от SecurableObject.) | |
Id | Gets a value that specifies the site identifier for the site. | |
IsMultilingual | ||
Language | Gets a value that specifies the LCID for the language that is used on the site. | |
LastItemModifiedDate | Gets a value that specifies when an item was last modified in the site. | |
Lists | Gets the collection of all lists that are contained in the website available to the current user based on the current user’s permissions. | |
ListTemplates | Gets a value that specifies the collection of list definitions and list templates available for creating lists on the site. | |
MasterUrl | Gets or sets the URL of the master page that is used for the website. | |
MembersCanShare | ||
Navigation | Gets a value that specifies the navigation structure on the site, including the Quick Launch area and the top navigation bar. | |
NoCrawl | ||
ObjectData | Для текущего объекта клиент получает данные объекта. (Унаследовано от ClientObject.) | |
ObjectVersion | Возвращает строку, которая показывает версия объекта клиента. Этот элемент зарезервирован для внутреннего использования и не предназначен для прямого применения в коде. (Унаследовано от ClientObject.) | |
OverwriteTranslationsOnChange | ||
ParentWeb | Gets the parent website of the specified website. | |
Path | Отслеживает как объект клиента при их создании в классе ClientRuntimeContext таким образом, чтобы объект можно воссоздать на сервере. Этот элемент зарезервирован для внутреннего использования и не предназначен для прямого применения в коде. (Унаследовано от ClientObject.) | |
PushNotificationSubscribers | Specifies the collection of push notification subscribers for the site, and cannot be NULL. | |
QuickLaunchEnabled | Gets or sets a value that specifies whether the Quick Launch area is enabled on the site. | |
RecycleBin | Gets the recycle bin of the website. | |
RecycleBinEnabled | Gets or sets a value that specifies whether the Recycle Bin is enabled. | |
RegionalSettings | Gets the regional settings that are currently implemented on the website. | |
RequestAccessEmail | ||
RoleAssignments | Gets the role assignments for the securable object. (Унаследовано от SecurableObject.) | |
RoleDefinitions | Gets the collection of role definitions for the website. | |
RootFolder | Gets the root folder for the website. | |
SaveSiteAsTemplateEnabled | Gets or sets a Boolean value that specifies whether the Web site can be saved as a site template. | |
ServerObjectIsNull | Возвращает серверный объект и возвращает значение null, если объект сервера равно null. (Унаследовано от ClientObject.) | |
ServerRelativeUrl | Gets or sets the server-relative URL for the Web site. | |
ShowUrlStructureForCurrentUser | Gets a value that specifies whether the current user is able to view the file system structure of this site. | |
SiteGroups | Gets the collection of groups for the site collection. | |
SiteLogoUrl | ||
SiteUserInfoList | Gets the UserInfo list of the site collection that contains the website. | |
SiteUsers | Gets the collection of all users that belong to the site collection. | |
SupportedUILanguageIds | Specifies the language code identifiers (LCIDs) of the languages that are enabled for the site. | |
SyndicationEnabled | Gets or sets a value that specifies whether the RSS feeds are enabled on the site. | |
Tag | Возвращает или задает данные, связанные с объектом клиента. (Унаследовано от ClientObject.) | |
ThemeInfo | The theming information for this website. This includes information like colors, fonts, border radii sizes, and so on. | |
ThirdPartyMdmEnabled | ||
Title | Gets or sets the title for the website. | |
TitleResource | ||
TreeViewEnabled | Gets or sets value that specifies whether the tree view is enabled on the site. | |
TypedObject | Возвращает объект с правильный тип сведений, возвращенных на сервере. (Унаследовано от ClientObject.) | |
UIVersion | Gets or sets the user interface (UI) version of the Web site. | |
UIVersionConfigurationEnabled | Gets or sets a value that specifies whether the settings UI for visual upgrade is shown or hidden. | |
Url | Gets the absolute URL for the website. | |
UserCustomActions | Gets a value that specifies the collection of user custom actions for the site. | |
Webs | Gets a Web site collection object that represents all Web sites immediately beneath the Web site, excluding children of those Web sites. | |
WebTemplate | Gets the name of the site definition or site template that was used to create the site. | |
WorkflowAssociations | Gets a value that specifies the collection of all workflow associations for the site. | |
WorkflowTemplates | Gets a value that specifies the collection of workflow templates associated with the site. |
Вверх
Методы
Имя | Описание | |
---|---|---|
AddSupportedUILanguage | ||
ApplyTheme | Applies a theme with the specified components to this site. | |
ApplyWebTemplate | Applies the specified site definition or site template to the website that has no template applied to it. | |
BreakRoleInheritance | Creates unique role assignments for the securable object. (Унаследовано от SecurableObject.) | |
CheckUninitializedProperty | Проверяет, ли свойство заданное значение type ClientObject инициировано. (Унаследовано от ClientObject.) | |
CreateAnonymousLink | Create an anonymous link which can be used to access a document without needing to authenticate. | |
CreateAnonymousLinkWithExpiration | Create an anonymous link which can be used to access a document without needing to authenticate. | |
CreateOrganizationSharingLink | ||
CustomFromJson | Возвращает значение типа Boolean, указывающее использовалось ли пользовательского кода для заполнения объекта. Этот элемент зарезервирован для внутреннего использования и не предназначен для прямого применения в коде. (Унаследовано от ClientObject.) | |
DefaultDocumentLibrary | ||
DeleteAllAnonymousLinksForObject | Removes all existing anonymous links for an object. | |
DeleteAnonymousLinkForObject(ClientRuntimeContext, String, Boolean) | Removes an existing anonymous link for an object. | |
DeleteAnonymousLinkForObject(ClientRuntimeContext, String, Boolean, Boolean) | ||
DeleteObject | Deletes the website. | |
DestroyOrganizationSharingLink(ClientRuntimeContext, String, Boolean) | ||
DestroyOrganizationSharingLink(ClientRuntimeContext, String, Boolean, Boolean) | ||
DoesPushNotificationSubscriberExist | Returns a Boolean value that indicates whether the push notification subscriber exists for the current user with the given device app instance identifier. | |
DoesUserHavePermissions | Returns whether the current user has the given set of permissions. | |
EnsureUser | Checks whether the specified logon name belongs to a valid user of the website, and if the logon name does not already exist, adds it to the website. | |
ForwardObjectLink | Share an object in SharePoint such as a list item, or site with no Acl changes, even when you do not have permission to share and can't send an access request. Use this method to send the link of the object to site members who already has permission to view the object. | |
FromJson | Указывает, использовалось ли пользовательского кода для заполнения объекта. Этот элемент зарезервирован для внутреннего использования и не предназначен для прямого применения в коде. (Унаследовано от ClientObject.) | |
GetAppBdcCatalog | Returns the Business Data Connectivity (BDC) MetadataCatalog for an application that gives access to the external content types defined in the BDC metadata model packaged by the application. | |
GetAppBdcCatalogForAppInstance | Returns the Business Data Connectivity (BDC) MetadataCatalog for an application that gives access to the external content types defined in the BDC metadata model packaged by the application. This method should be called on the Web object where the application is installed. | |
GetAppInstanceById | Retrieves an AppInstance installed on this site. | |
GetAppInstancesByProductId | Retrieves all AppInstance objects installed on this site that are instances of the specified App. | |
GetAvailableWebTemplates | Returns a collection of site templates available for the site. | |
GetCatalog | Returns the list template gallery, site template gallery, or Web Part gallery for the site. | |
GetChanges | Returns the collection of all changes from the change log that have occurred within the scope of the site, based on the specified query. | |
GetDocumentLibraries | ||
GetEntity | Specifies the external content type with the specified namespace and name in the context of the current site. This method is used as the entry point to create, read, update, and delete (CRUD) operations against an Entity. | |
GetFileByGuestUrl | ||
GetFileByGuestUrlEnsureAccess | ||
GetFileById | This API element is only supported by SharePoint Online. | |
GetFileByLinkingUrl | ||
GetFileByServerRelativeUrl | Returns the file object located at the specified server-relative URL. | |
GetFileByUrl | ||
GetFileByWOPIFrameUrl | ||
GetFolderById | ||
GetFolderByServerRelativeUrl | Returns the folder object located at the specified server-relative URL. | |
GetList | ||
GetObjectSharingSettings | Given a path to an object in SharePoint, this will generate a sharing settings object which contains necessary information for rendering sharing information. | |
GetPushNotificationSubscriber | Specifies the push notification subscriber over the site for the specified device app instance identifier. | |
GetPushNotificationSubscribersByArgs | Queries for the push notification subscribers for the site with the specified set of custom arguments.The passed value is compared against the subscribers’ custom arguments in the store and exact matches are returned as a collection. Null or empty custom arguments return subscribers without any filtering. If no match is found, an empty collection is returned. | |
GetPushNotificationSubscribersByUser | Queries for the push notification subscribers for the site for the specified user. | |
GetRecycleBinItems | ||
GetSharingLinkKind | ||
GetSubwebsForCurrentUser | Returns the collection of child sites of the current site based on the specified query. | |
GetUserById | Returns the user corresponding to the specified member identifier for the current site. | |
GetUserEffectivePermissions | Gets the effective permissions that the specified user has within the current application scope. | |
GetWebUrlFromPageUrl | ||
IncrementSiteClientTag | ||
InitNonPropertyFieldFromJson | Выполняет инициализацию поля не свойства объекта клиента, на основе данных Нотация объектов JavaScript (JSON) с сервера. Этот элемент зарезервирован для внутреннего использования и не предназначен для прямого применения в коде. (Унаследовано от ClientObject.) | |
InitOnePropertyFromJson | (Переопределяет SecurableObject.InitOnePropertyFromJson(String, JsonReader).) | |
IsObjectPropertyInstantiated | Указывает, создается ли свойство указанного объекта клиента. (Унаследовано от ClientObject.) | |
IsPropertyAvailable | Возвращает значение типа Boolean, указывающее, имеет ли свойство скалярное получить или задать. (Унаследовано от ClientObject.) | |
LoadAndInstallApp | Uploads and installs an app package to this site. | |
LoadAndInstallAppInSpecifiedLocale | Uploads and installs an App package, in a specified locale. | |
LoadApp | Uploads an App package and creates an instance from it. | |
LoadExpandoFields | Выполняет инициализацию расширенные свойства, связанные с объектом клиент переопределение производных классов. (Унаследовано от ClientObject.) | |
MapToIcon | Returns the name of the image file for the icon that is used to represent the specified file. | |
RefreshLoad | Перезагрузка все скалярные свойствах, связанных с клиентского объекта переопределение производных классов. (Унаследовано от ClientObject.) | |
RegisterPushNotificationSubscriber | Return a GUID, and registers the push notification subscriber for the site. If the registration already exists, the service token is updated with the new value. | |
RemoveFromParentCollection | Удаляет текущий объект клиента из коллекции родительского объекта клиента. (Унаследовано от ClientObject.) | |
RemoveSupportedUILanguage | ||
ResetRoleInheritance | When implemented in a derived class, removes local role assignments so that role assignments, for all descendant objects, are re-inherited from the parent object. (Унаследовано от SecurableObject.) | |
Retrieve() | Извлекает все скалярные свойства, связанные с объектом. Этот элемент зарезервирован для внутреннего использования и не предназначен для прямого применения в коде. (Унаследовано от ClientObject.) | |
Retrieve([]) | Возвращает указанное скалярное свойствах, связанных с объектом. Этот элемент зарезервирован для внутреннего использования и не предназначен для прямого применения в коде. (Унаследовано от ClientObject.) | |
ShareObject(ClientRuntimeContext, String, String, String, Int32, Boolean, Boolean, Boolean, String, String) | Shares an object in SharePoint such as a document or site with external users. | |
ShareObject(ClientRuntimeContext, String, String, String, Int32, Boolean, Boolean, Boolean, String, String, Boolean) | ||
ToString | (Унаследовано от Object.) | |
UnregisterPushNotificationSubscriber | Returns a GUID, and unregisters the push notification subscriber from the site. | |
UnshareObject | Removes Sharing permissions on an object. | |
Update | Updates the database with changes that are made to the Web site. | |
UpdateClientObjectPropertyType | Обновляет свойства объекта клиента значение должно иметь правильный тип с помощью тип сведений, возвращенных на сервере. (Унаследовано от ClientObject.) | |
WebUrlFromFolderUrlDirect | Get web's full url from folder url. | |
WebUrlFromPageUrlDirect |
Вверх