private GetSecurableContextId ( ) : |
||
리턴 |
/// <summary> /// Gets the security context id from the URL of the current site /// </summary> /// <param name="webUrl">The URL for the SP site</param> /// <returns>The SecurityContextId or -1 if it wasn't found (wrapped in a response object to indicate if it completed without error)</returns> public GetSecurableContextIdResponse GetSecurableContextId(string webUrl) { GetSecurableContextIdResponse result = new GetSecurableContextIdResponse() { HasError = false }; SecurityContextManager securityContext = new SecurityContextManager(webUrl); result = securityContext.GetSecurableContextId(); return(result); }
/// <summary> /// Gets the security context id from the URL of the current site /// </summary> /// <param name="webUrl">The URL for the SP site</param> /// <returns>The SecurityContextId or -1 if it wasn't found (wrapped in a response object to indicate if it completed without error)</returns> public GetSecurableContextIdResponse GetSecurableContextId(string webUrl) { GetSecurableContextIdResponse result = new GetSecurableContextIdResponse() { HasError = false }; SecurityContextManager securityContext = new SecurityContextManager(webUrl); result = securityContext.GetSecurableContextId(); return result; }