Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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.

  Name Description
Public property Static 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

  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 method Static member GetContext(HttpContext) Gets the service context that is associated with the specified HttpContext object.
Public method Static member GetContext(SPSite) Gets the service context for the specified SPSite object.
Public method Static 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

  Name Description
Public operator Static member Equality Determines whether the two specified SPServiceContext objects have the same value.
Public operator Static member Inequality Determines whether the two specified SPServiceContext objects have different values.
Top
Show:
© 2015 Microsoft