Share via


SPServiceContext members

Represents a context object that encapsulates all the information that is required to make a call to a service application.

The SPServiceContext type exposes the following members.

Properties

  Name Description
Public propertyStatic member Current Gets the service context for the application that is currently running.
Public property SiteSubscriptionId Gets the site subscription identifier for this service context.

Top

Methods

  Name Description
Public method Equals(Object) Determines whether the specified object is equal to the current SPServiceContext. (Overrides Object.Equals(Object).)
Public method Equals(SPServiceContext) Determines whether the specified object is equal to the current SPServiceContext.
Protected method Finalize (Inherited from Object.)
Public methodStatic member GetContext(HttpContext) Gets the service context that is associated with the specified HttpContext object.
Public methodStatic member GetContext(SPSite) Gets the service context for the specified SPSite object.
Public methodStatic member GetContext(SPServiceApplicationProxyGroup, SPSiteSubscriptionIdentifier) Retrieves the service context that is associated with the specified SPServiceApplicationProxyGroup instance and SPSiteSubscriptionIdentifier.
Public method GetDefaultProxy Returns the default service application proxy for the specified type.
Public method GetHashCode Gets the hash code for the current SPServiceContext. (Overrides Object.GetHashCode().)
Public method GetProxies Returns an enumerator that can be used to iterate over the service application proxies of the specified type.
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Operators

  Name Description
Public operatorStatic member Equality Determines whether the two specified SPServiceContext objects have the same value.
Public operatorStatic member Inequality Determines whether the two specified SPServiceContext objects have different values.

Top

See also

Reference

SPServiceContext class

Microsoft.SharePoint namespace