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 Returns the context that is associated with the client object. (从 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 Gets the object data for the current client object. (从 ClientObject 继承。)
公共属性 ObjectVersion Gets a string that indicates the version of the current client object. 此成员仅供内部使用,不能直接在您的代码中使用。 (从 ClientObject 继承。)
公共属性 OverwriteTranslationsOnChange
公共属性 ParentWeb Gets the parent website of the specified website.
公共属性 Path Tracks how a client object is created in the ClientRuntimeContext class so that the object can be recreated on the server. 此成员仅供内部使用,不能直接在您的代码中使用。 (从 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 Gets the server object and returns null if the server object is 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 Gets or sets data that is associated with the client object. (从 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 Gets the object with the correct type information returned from the server. (从 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 Checks to determine whether the specified value type property of a ClientObject has been initialized. (从 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 Returns a Boolean value that indicates whether custom code was used to populate an object. 此成员仅供内部使用,不能直接在您的代码中使用。 (从 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 Indicates whether custom code was used to populate an object. 此成员仅供内部使用,不能直接在您的代码中使用。 (从 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 Initializes a non-property field of the client object based on JavaScript 对象表示法 (JSON) data from the server. 此成员仅供内部使用,不能直接在您的代码中使用。 (从 ClientObject 继承。)
受保护的方法 InitOnePropertyFromJson (覆盖 SecurableObject.InitOnePropertyFromJson(String, JsonReader)。)
公共方法 IsObjectPropertyInstantiated Indicates whether the specified property of the client object is instantiated. (从 ClientObject 继承。)
公共方法 IsPropertyAvailable Returns a Boolean value that indicates whether the specified scalar property has been retrieved or set. (从 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 Initializes the extended properties associated with the client object when overridden in a derived class. (从 ClientObject 继承。)
公共方法 MapToIcon Returns the name of the image file for the icon that is used to represent the specified file.
公共方法 RefreshLoad Reloads all scalar properties associated with the client object when overridden in a derived class. (从 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 Removes the current client object from the parent client object collection. (从 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() Retrieves all scalar properties associated with the object. 此成员仅供内部使用,不能直接在您的代码中使用。 (从 ClientObject 继承。)
公共方法 Retrieve([]) Retrieves the specified scalar properties associated with the object. 此成员仅供内部使用,不能直接在您的代码中使用。 (从 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 Updates the client object property's value to have correct type by using the type information returned from the server. (从 ClientObject 继承。)
公共方法静态成员 WebUrlFromFolderUrlDirect Get web's full url from folder url.
公共方法静态成员 WebUrlFromPageUrlDirect

页首

另请参阅

引用

Web 类

Microsoft.SharePoint.Client 命名空间