System.IO.Pipes.UnixNamedPipe.RightsToAccess C# (CSharp) 메소드

RightsToAccess() 보호된 메소드

protected RightsToAccess ( PipeAccessRights rights ) : string
rights PipeAccessRights
리턴 string
		protected string RightsToAccess (PipeAccessRights rights)
		{
			string access = null;
			if ((rights & PipeAccessRights.ReadData) != 0) {
				if ((rights & PipeAccessRights.WriteData) != 0)
					access = "r+";
				else
					access = "r";
			}
			else if ((rights & PipeAccessRights.WriteData) != 0)
				access = "w";
			else
				throw new InvalidOperationException ("The pipe must be opened to either read or write");

			return access;
		}