Microsoft.Azure.Commands.Resources.Models.ActiveDirectory.ActiveDirectoryClient.ValidatePasswordCredential C# (CSharp) Method

ValidatePasswordCredential() private method

private ValidatePasswordCredential ( Microsoft.Azure.Graph.RBAC.Models.PasswordCredential credential ) : void
credential Microsoft.Azure.Graph.RBAC.Models.PasswordCredential
return void
        private void ValidatePasswordCredential(PasswordCredential credential)
        {
            if (credential == null || string.IsNullOrEmpty(credential.KeyId) || string.IsNullOrEmpty(credential.Value) ||
                credential.StartDate == null || credential.EndDate == null)
            {
                throw new InvalidOperationException(ProjectResources.PasswordCredentialNotValid);
            }
        }