다음을 통해 공유


Load Method

Topic Last Modified: 2006-06-13

Creates a DACL object by loading security descriptor information from an Exchange store item.

Applies To

DACL Object

Syntax


objResult  objDACL.Load(strURL, [strUser,] [strPwd]);

Parameters

  • strURL
    A string value of the URL of the Exchange store item for loading its security descriptor into a DACL object.
  • strUser
    Optional. A string value of the username required for accessing the secured item.
  • strPwd
    Optional. A string value of the password required for accessing the secured item.

Return Value

An object that returns error codes and descriptions.

Remarks

The username and password are optional because the current user s authentication should already be established by enabling Integrated Authentication in Microsoft Internet Information Services (IIS).

Important

Storing usernames and passwords in script files poses a security risk.

Example

var objDacl = CreateSecurityDacl();
var objResult = objDacl.Load("https://server/folder/someitem");
if(FAILED(objResult.number)){
   //show an error msg here, using  objResult.description
}

See Also

Other Resources

Save Method
SaveTo Method