23 instantiations of OptionalAttribute
mscorlib (1)
system\runtime\interopservices\attributes.cs (1)
735
return parameter.IsOptional ? new
OptionalAttribute
() : null;
PresentationFramework (2)
src\Framework\MS\Internal\AppModel\ShellProvider.cs (1)
1084
internal static extern HRESULT SHGetFolderPathEx([In] ref Guid rfid, KF_FLAG dwFlags, [In,
Optional
] IntPtr hToken, [Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder pszPath, uint cchPath);
src\Framework\System\Windows\Standard\NativeMethods.cs (1)
2451
private static extern bool _ChangeWindowMessageFilterEx(IntPtr hwnd, WM message, MSGFLT action, [In, Out,
Optional
] ref CHANGEFILTERSTRUCT pChangeFilterStruct);
System (2)
net\System\Net\_AutoWebProxyScriptHelper.cs (2)
440
public bool weekdayRange(string wd1, [
Optional
] object wd2, [
Optional
] object gmt)
System.Windows.Forms (16)
winforms\Managed\System\WinForms\UnsafeNativeMethods.cs (16)
2518
object CreateEventObject([In,
Optional
] ref object eventObject);
7850
string get_accName([In][
Optional
][MarshalAs(UnmanagedType.Struct)] object varChild);
7855
string get_accValue([In][
Optional
][MarshalAs(UnmanagedType.Struct)] object varChild);
7860
string get_accDescription([In][
Optional
][MarshalAs(UnmanagedType.Struct)] object varChild);
7865
object get_accRole([In][
Optional
][MarshalAs(UnmanagedType.Struct)] object varChild);
7870
object get_accState([In][
Optional
][MarshalAs(UnmanagedType.Struct)] object varChild);
7875
string get_accHelp([In][
Optional
][MarshalAs(UnmanagedType.Struct)] object varChild);
7880
[In][
Optional
][MarshalAs(UnmanagedType.Struct)] object varChild);
7885
string get_accKeyboardShortcut([In][
Optional
][MarshalAs(UnmanagedType.Struct)] object varChild);
7900
string get_accDefaultAction([In][
Optional
][MarshalAs(UnmanagedType.Struct)] object varChild);
7905
[In][
Optional
][MarshalAs(UnmanagedType.Struct)] object varChild);
7913
[In][
Optional
][MarshalAs(UnmanagedType.Struct)] object varChild);
7919
[In][
Optional
][MarshalAs(UnmanagedType.Struct)] object varStart);
7929
void accDoDefaultAction([In][
Optional
][MarshalAs(UnmanagedType.Struct)] object varChild);
7933
void set_accName([In][
Optional
][MarshalAs(UnmanagedType.Struct)] object varChild,
7938
void set_accValue([In][
Optional
][MarshalAs(UnmanagedType.Struct)] object varChild,
WindowsBase (2)
Shared\MS\Win32\UnsafeNativeMethodsCLR.cs (1)
1425
[In][
Optional
][MarshalAs(UnmanagedType.LPTStr)] string lpModuleName,
Shared\MS\Win32\UnsafeNativeMethodsOther.cs (1)
393
private static extern bool IntChangeWindowMessageFilterEx(IntPtr hwnd, WindowMessage message, MSGFLT action, [In, Out,
Optional
] ref CHANGEFILTERSTRUCT pChangeFilterStruct);
6 references to OptionalAttribute
mscorlib (5)
system\reflection\customattribute.cs (5)
2140
typeof(
OptionalAttribute
) as RuntimeType, // parameter
2342
if (all || caType == (RuntimeType)typeof(
OptionalAttribute
))
2344
pca =
OptionalAttribute
.GetCustomAttribute(parameter);
2370
if (all || caType == (RuntimeType)typeof(
OptionalAttribute
))
2372
if (
OptionalAttribute
.IsDefined(parameter)) return true;
System.Web (1)
Compilation\ObjectFactoryCodeDomTreeGenerator.cs (1)
34
private static readonly string optionalAttributeTypeName = typeof(
OptionalAttribute
).FullName;