NamespaceInfo.Namespace Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the namespace reference.
public:
property System::String ^ Namespace { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("namespace", DefaultValue="", IsKey=true, IsRequired=true)]
[System.Configuration.StringValidator(MinLength=1)]
public string Namespace { get; set; }
[<System.Configuration.ConfigurationProperty("namespace", DefaultValue="", IsKey=true, IsRequired=true)>]
[<System.Configuration.StringValidator(MinLength=1)>]
member this.Namespace : string with get, set
Public Property Namespace As String
Property Value
A string that specifies the name of the namespace.
- Attributes
Examples
The following code example shows how to use the Namespace property. This code example is part of a larger example provided for the PagesSection class.
// Set the Namespace property.
namespaceInfo.Namespace = "System.Collections";
' Set the Namespace property.
namespaceInfo.Namespace = "System.Collections"
Remarks
No validation is performed to verify that the namespace reference is valid.
Applies to
See also
ทํางานร่วมกับเราใน GitHub
แหล่งที่มาสำหรับเนื้อหานี้สามารถพบได้บน GitHub ซึ่งคุณยังสามารถสร้างและตรวจสอบปัญหาและคำขอดึงข้อมูลได้ สำหรับข้อมูลเพิ่มเติม ให้ดูคู่มือผู้สนับสนุนของเรา