Índice de las API de .NET Server, CSOM, JSOM y REST de SharePointSharePoint .NET Server, CSOM, JSOM, and REST API index

Use el índice de la API para buscar muchos de los tipos y objetos que se usan con mayor frecuencia y que están implementados en el modelo de objetos del servidor .NET y al menos un modelo de programación de cliente: modelo de objeto de cliente (CSOM) de .NET, modelo de objeto de JavaScript (JSOM) y/o REST.Use the API index to look up many of the most frequently used types and objects that are implemented in the .NET server object model and at least one client programming model: .NET client-side object model (CSOM), JavaScript object model (JSOM), and/or REST.

This table lists the most frequently used core APIs, which are in most cases based on types from the .NET server implementation. In some cases, types are native to SharePoint client programming, and there is no equivalent .NET server type. In other cases, some but not all possible client programming model implementations of a specific type exist.This table lists the most frequently used core APIs, which are in most cases based on types from the .NET server implementation. In some cases, types are native to SharePoint client programming, and there is no equivalent .NET server type. In other cases, some but not all possible client programming model implementations of a specific type exist.

Nota

Antes de usar un URI del punto de conexión de REST mostrado en la tabla, cambie la abreviatura por la ruta de acceso al sitio de SharePoint; por ejemplo, http://<site collection>/<site>/_api/web/lists.Before using a REST endpoint URI shown in the table, replace the abbreviation with the path to your SharePoint site; for example http://<site collection>/<site>/_api/web/lists.

Índice de la API de SharePointSharePoint API index

APIAPI SP.Object/Enumeration (sp.js)SP.Object/Enumeration (sp.js) Punto de conexión de RESTREST Endpoint
AttachmentCollection SPAttachmentCollectionAttachmentCollection SPAttachmentCollection SP.AttachmentCollectionSP.AttachmentCollection …/_api/web/lists('<list id>')/items(<item id>)/attachmentfiles
BasePermissions SPBasePermissionsBasePermissions SPBasePermissions Objeto SP.BasePermissionsSP.BasePermissions object N/DN/A
CalendarType SPCalendarTypeCalendarType SPCalendarType Enumeración SP.CalendarTypeSP.CalendarType enumeration N/DN/A
ChangeCollection SPChangeCollectionChangeCollection SPChangeCollection Objeto SP.ChangeCollectionSP.ChangeCollection object …/_api/web/getchanges(changequery)
ChangeSite SPChangeSiteChangeSite SPChangeSite Enumeración SP.ChangeSiteSP.ChangeSite enumeration N/DN/A
ClientContextClientContext Objeto SP.ClientContextSP.ClientContext object …/_api/contextinfo
ContentType SPContentTypeContentType SPContentType Objeto SP.ContentTypeSP.ContentType object …/_api/web/contenttypes('<content type id>')
ContentTypeCollection SPContentTypeCollectionContentTypeCollection SPContentTypeCollection Objeto SP.ContentTypeCollectionSP.ContentTypeCollection object …/_api/web/contenttypes
SPContextSPContext Objeto SP.RequestContextSP.RequestContext object N/DN/A
EventReceiverDefinition SPEventReceiverDefinitionEventReceiverDefinition SPEventReceiverDefinition Objeto SP.EventReceiverDefinitionSP.EventReceiverDefinition object …/_api/web/eventreceivers
EventReceiverDefinitionCollection SPEventReceiverDefinitionCollectionEventReceiverDefinitionCollection SPEventReceiverDefinitionCollection Objeto SP.EventReceiverDefinitionCollectionSP.EventReceiverDefinitionCollection object …/_api/web/eventreceivers(eventreceiverid)
EventReceiverDefinitionCreationInformation SPEventReceiverDefinitionCreationInformationEventReceiverDefinitionCreationInformation SPEventReceiverDefinitionCreationInformation Objeto SP.EventReceiverDefinitionCreationInformationSP.EventReceiverDefinitionCreationInformation object N/DN/A
EventReceiverType SPEventReceiverTypeEventReceiverType SPEventReceiverType Enumeración SP.EventReceiverTypeSP.EventReceiverType enumeration N/DN/A
Feature SPFeatureFeature SPFeature Objeto SP.FeatureSP.Feature object …/_api/web/features(featureid)
FeatureCollection SPFeatureCollectionFeatureCollection SPFeatureCollection Objeto SP.FeatureCollectionSP.FeatureCollection object …/_api/web/features
FeatureDefinitionScope SPFeatureDefinitionScopeFeatureDefinitionScope SPFeatureDefinitionScope Enumeración SP.FeatureDefinitionScopeSP.FeatureDefinitionScope enumeration N/DN/A
Field SPFieldField SPField Objeto SP.FieldSP.Field object …/_api/web/fields('')…/_api/web/fields('')
FieldCalculated SPFieldCalculatedFieldCalculated SPFieldCalculated Objeto SP.FieldCalculatedSP.FieldCalculated object …/_api/web/fields('')…/_api/web/fields('')
FieldChoice SPFieldChoiceFieldChoice SPFieldChoice Objeto SP.FieldChoiceSP.FieldChoice object …/_api/web/fields('')…/_api/web/fields('')
FieldCollection SPFieldCollectionFieldCollection SPFieldCollection Objeto SP.FieldCollectionSP.FieldCollection object …/_api/web/fields…/_api/web/fields
FieldComputed SPFieldComputedFieldComputed SPFieldComputed Objeto SP.FieldComputedSP.FieldComputed object …/_api/web/fields('')…/_api/web/fields('')
FieldCurrency SPFieldCurrencyFieldCurrency SPFieldCurrency Objeto SP.FieldCurrencySP.FieldCurrency object …/_api/web/fields('')…/_api/web/fields('')
FieldLink SPFieldLinkFieldLink SPFieldLink Objeto SP.FieldLinkSP.FieldLink object …/_api/web/contenttypes('<content type id>')/fieldlinks('<field link id>')
FieldLookupValue SPFieldLookupValueFieldLookupValue SPFieldLookupValue Objeto SP.FieldLookupSP.FieldLookup object N/DN/A
FieldMultiChoice SPFieldMultiChoiceFieldMultiChoice SPFieldMultiChoice Objeto SP.FieldMultiChoiceSP.FieldMultiChoice object …/_api/web/fields('')…/_api/web/fields('')
FieldMultiLineText SPFieldMultiLineTextFieldMultiLineText SPFieldMultiLineText Objeto SP.FieldMultiLineTextSP.FieldMultiLineText object …/_api/web/fields('')…/_api/web/fields('')
FieldNumber SPFieldNumberFieldNumber SPFieldNumber Objeto SP.FieldNumberSP.FieldNumber object …/_api/web/fields('')…/_api/web/fields('')
FieldText SPFieldTextFieldText SPFieldText Objeto SP.FieldTextSP.FieldText object …/_api/web/fields('')…/_api/web/fields('')
FieldUrl SPFieldUrlFieldUrl SPFieldUrl Objeto SP.FieldUrlSP.FieldUrl object …/_api/web/fields('')…/_api/web/fields('')
FieldUrlValue SPFieldUrlValueFieldUrlValue SPFieldUrlValue Objeto SP.FieldUrlValueSP.FieldUrlValue object N/DN/A
FieldUser SPFieldUserFieldUser SPFieldUser Objeto SP.FieldUserSP.FieldUser object …/_api/web/fields('')…/_api/web/fields('')
File SPFileFile SPFile Objeto SP.FileSP.File object …/_api/web/getfilebyserverrelativeurl('//')…/_api/web/getfilebyserverrelativeurl('//')
FileCollection SPFileCollectionFileCollection SPFileCollection Objeto SP.FieldCollectionSP.FieldCollection object …/_api/web/getfolderbyserverrelativeurl('/')/files…/_api/web/getfolderbyserverrelativeurl('/')/files
Folder SPFolderFolder SPFolder Objeto SP.FolderSP.Folder object …/_api/web/getfolderbyserverrelativeurl('/')…/_api/web/getfolderbyserverrelativeurl('/')
Form SPFormForm SPForm Objeto SP.FormSP.Form object …/_api/web/lists(guid'<list id>')/forms('<form id>')
Group SPGroupGroup SPGroup Objeto SP.GroupSP.Group object …/_api/web/sitegroups()…/_api/web/sitegroups()
GroupCollection SPGroupCollectionGroupCollection SPGroupCollection Objeto SP.GroupCollectionSP.GroupCollection object …/_api/web/sitegroups…/_api/web/sitegroups
Language SPLanguageLanguage SPLanguage Objeto SP.LanguageSP.Language object N/DN/A
List SPListList SPList Objeto SP.ListSP.List object …/_api/web/lists(guid'')…/_api/web/lists(guid'')
ListCollection SPListCollectionListCollection SPListCollection Objeto SP.ListCollectionSP.ListCollection object …/_api/web/lists…/_api/web/lists
ListDataSource SPListDataSourceListDataSource SPListDataSource Objeto SP.ListDataSourceSP.ListDataSource object N/DN/A
ListItem SPListItemListItem SPListItem Objeto SP.ListItemSP.ListItem object …/_api/web/lists(guid'')/items()…/_api/web/lists(guid'')/items()
ListItemCollection SPListItemCollectionListItemCollection SPListItemCollection Objeto SP.ListItemCollectionSP.ListItemCollection object …/_api/web/lists(guid'')/items…/_api/web/lists(guid'')/items
ListTemplateType SPListTemplateTypeListTemplateType SPListTemplateType Enumeración SP.ListTemplateTypeSP.ListTemplateType enumeration N/DN/A
Navigation SPNavigationNavigation SPNavigation Objeto SP.NavigationSP.Navigation object …/_api/web/navigation
NavigationNode SPNavigationNodeNavigationNode SPNavigationNode Objeto SP.NavigationNodeSP.NavigationNode object N/DN/A
Principal SPPrincipalPrincipal SPPrincipal Objeto SP.PrincipalSP.Principal object N/DN/A
SPQuerySPQuery N/DN/A
RecycleBinItem SPRecycleBinItemRecycleBinItem SPRecycleBinItem Objeto SP.RecycleBinItemSP.RecycleBinItem object …/_api/web/RecycleBin(recyclebinitemid)
RecycleBinItemCollection SPRecycleBinItemCollectionRecycleBinItemCollection SPRecycleBinItemCollection Objeto SP.RecycleBinItemCollectionSP.RecycleBinItemCollection object …/_api/web/RecycleBin
RegionalSettings SPRegionalSettingsRegionalSettings SPRegionalSettings Objeto SP.RegionalSettingsSP.RegionalSettings object …/_api/web/RegionalSettings
RoleAssignment SPRoleAssignmentRoleAssignment SPRoleAssignment Objeto SP.RoleAssignmentSP.RoleAssignment object …/_api/web/roleassignments()…/_api/web/roleassignments()
RoleAssignmentCollection SPRoleAssignmentCollectionRoleAssignmentCollection SPRoleAssignmentCollection Objeto SP.RoleAssignmentCollectionSP.RoleAssignmentCollection object …/_api/web/roleassignments…/_api/web/roleassignments
RoleDefinition SPRoleDefinitionRoleDefinition SPRoleDefinition Objeto SP.RoleDefinitionSP.RoleDefinition object …/_api/web/roledefinitions()…/_api/web/roledefinitions()
RoleType SPRoleTypeRoleType SPRoleType Enumeración SP.RoleTypeSP.RoleType enumeration N/DN/A
SecurableObject SPSecurableObjectSecurableObject SPSecurableObject Objeto SP.SecurableObjectSP.SecurableObject object N/DN/A
Site SPSiteSite SPSite Objeto SP.SiteSP.Site object …/_api/site
TimeZone SPTimeZoneTimeZone SPTimeZone Objeto SP.TimeZoneSP.TimeZone object …/_api/web/RegionalSettings/TimeZones(timzoneid)
Taxonomy SPTaxonomySessionTaxonomy SPTaxonomySession Objeto SP.Taxonomy.TaxonomySessionSP.Taxonomy.TaxonomySession object NANA
TimeZoneCollection SPTimeZoneCollectionTimeZoneCollection SPTimeZoneCollection Objeto SP.TimeZoneCollectionSP.TimeZoneCollection object …/_api/web/RegionalSettings/TimeZones
User SPUserUser SPUser Objeto SP.UserSP.User object …/_api/web/siteusers(@v)?@v=''…/_api/web/siteusers(@v)?@v=''
UserCollection SPUserCollectionUserCollection SPUserCollection Objeto SP.UserCollectionSP.UserCollection object …/_api/web/sitegroups()/users…/_api/web/sitegroups()/users
Utility SPUtilityUtility SPUtility Objeto SP.Utilities.Utility (sp.js)SP.Utilities.Utility object (sp.js) N/DN/A
View SPViewView SPView Objeto SP.View (sp.js)SP.View object (sp.js) …/_api/web/lists(guid'')/views('')…/_api/web/lists(guid'')/views('')
ViewCollection SPViewCollectionViewCollection SPViewCollection Objeto SP.ViewCollectionSP.ViewCollection object …/_api/web/lists(guid'')/views…/_api/web/lists(guid'')/views
ViewFieldCollection SPViewFieldCollectionViewFieldCollection SPViewFieldCollection Objeto SP.ViewFieldCollectionSP.ViewFieldCollection object …/_api/web/lists(guid'')/views('')/fields…/_api/web/lists(guid'')/views('')/fields
Web SPWebWeb SPWeb Objeto SP.WebSP.Web object …/_api/web…/_api/web
WebCollection SPWebCollectionWebCollection SPWebCollection Objeto SP.WebCollectionSP.WebCollection object …/_api/web/webs…/_api/web/webs
WebInformation SPWebInfoWebInformation SPWebInfo Objeto SP.WebInformationSP.WebInformation object …/_api/web/webinfos('<web information id>')
WebTemplate SPWebTemplateWebTemplate SPWebTemplate Objeto SP.WebTemplateSP.WebTemplate object …/_api/web/GetAvailableWebTemplates(languageid,includecrosslanguage)/getbyname(templatename)
WebTemplateCollection SPWebTemplateCollectionWebTemplateCollection SPWebTemplateCollection Objeto SP.WebTemplateCollectionSP.WebTemplateCollection object …/_api/web/GetAvailableWebTemplates(languageid,includecrosslanguage)

Vea tambiénSee also