Show / Hide Table of Contents

Class KeychainAttribute

Attribute to add to fields of the Password and Login type to set the service and user (for Password) used for the Keychain.

Inheritance
System.Object
System.Attribute
KeychainAttribute
Implements
System.Runtime.InteropServices._Attribute
Namespace: sttz.Trimmer.Editor
Assembly: Trimmer-Editor.dll
Syntax
public class KeychainAttribute : Attribute, _Attribute

Constructors

| Improve this Doc View Source

KeychainAttribute(String, String)

Set the service and user (for fields of type Password) for storing the password in the Keychain.

Declaration
public KeychainAttribute(string keychainInfo, string userLabel = null)
Parameters
Type Name Description
System.String keychainInfo

Service name and user name separated by a colon.

System.String userLabel

Override label before user field (does not apply to Password fields).

Properties

| Improve this Doc View Source

Service

Declaration
public string Service { get; protected set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

User

Declaration
public string User { get; protected set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

UserLabel

Declaration
public string UserLabel { get; protected set; }
Property Value
Type Description
System.String

Methods

| Improve this Doc View Source

ParseKeychainInfo(String, out String, out String)

Declaration
public static void ParseKeychainInfo(string keychainInfo, out string service, out string user)
Parameters
Type Name Description
System.String keychainInfo
System.String service
System.String user

Implements

System.Runtime.InteropServices._Attribute
  • Improve this Doc
  • View Source
Back to top © 2017 Adrian Stutz