SharpCifs.Smb.SmbFile.GetPrincipal C# (CSharp) 메소드

GetPrincipal() 공개 메소드

Returns the NtlmPasswordAuthentication object used as credentials with this file or pipe.
Returns the NtlmPasswordAuthentication object used as credentials with this file or pipe. This can be used to retrieve the username for example: String username = f.getPrincipal().getName(); The Principal object returned will never be null however the username can be null indication anonymous credentials were used (e.g. some IPC$ services).
public GetPrincipal ( ) : Principal
리턴 Principal
        public virtual Principal GetPrincipal()
        {
            return Auth;
        }