简体   繁体   中英

Remember me option for outlook addin

How can i create "Remember me" option for outlook addin.(In textBox) I don't want to connnect it to the database. I just want to save the user credentials on his/her computer when he/s login to the outlook addin. This addin will connect the user to the site by using web services.

For user/app specific registry access you can use the following functions:

Application.UserAppDataRegistry.SetValue

and

Application.UserAppDataRegistry.GetValue

You can use CustomDocumentProperties available on the active project to store and retrieve user properties.

DocumentProperties docProps = ( DocumentProperties )this.Application.ActiveProject.CustomDocumentProperties;
Microsoft.Office.Core.DocumentProperty projNameProp = docProps.Add( builtinPropertyName, false, Microsoft.Office.Core.MsoDocProperties.msoPropertyTypeString, value, missing );
projNameProp.Value = value;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM