GetSecurableContextId() 개인적인 메소드

private GetSecurableContextId ( ) : GetSecurableContextIdResponse
리턴 Glyma.Security.GetSecurableContextIdResponse
예제 #1
0
        /// <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);
        }
예제 #2
0
 /// <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;
 }