microsoft/teams.net

Public

mirrored fromhttps://github.com/microsoft/teams.netAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
copilot/add-new-feature

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

Libraries/Microsoft.Teams.Apps/Plugins/DependencyAttribute.cs

27lines · modecode

1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the MIT License.
3
4namespace Microsoft.Teams.Apps.Plugins;
5
6[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, Inherited = true)]
7public class DependencyAttribute : Attribute
8{
9 public string? Name { get; set; }
10 public bool Optional { get; set; } = false;
11
12 public DependencyAttribute() : base()
13 {
14
15 }
16
17 public DependencyAttribute(string name) : base()
18 {
19 Name = name;
20 }
21
22 public DependencyAttribute(string name, bool optional) : base()
23 {
24 Name = name;
25 Optional = optional;
26 }
27}