সহজ ব্যাখ্যা: “মান প্রত্যাশিত পরিসীমা মধ্যে না পড়া না.”

আপডেট: An anonymous poster left a great comment about internal names. Be sure to read it.

ঘটনা রিসিভার এবং অন্যান্য কোড যখন কাজ যে রেফারেন্স অবজেক্ট মডেল মাধ্যমে SharePoint তালিকা আইটেম, আমি প্রায়ই ভুল করে যে রানটাইমে এই ত্রুটি উৎপন্ন করা:

ত্রুটি লোড এবং চলমান xyzzy মধ্যে ইভেন্ট রিসিভার Conchango.xyzzyEventReceiver, সংস্করণ = 1.0.0.0, সংস্কৃতি = নিরপেক্ষ, PublicKeyToken = 0dc50a750396c3ac. Additional information is below. : Value does not fall within the expected range.

I think this is a fairly generic error that is potentially caused many different ways. কিন্তু, one simple explanation is that I’m referencing a field incorrectly. If the name of the field is "Due Date", আমি একটি ঘটনা রিসিভার ভালো লেগেছে তা উল্লেখ করা আবশ্যক:

properties.ListItem["Due Date"]

যদি ক্ষেত্রের কিছু r উল্লেখ যখন আমি ভুল ক্ষেত্রে misspell বা ব্যবহার করার সময়, SharePoint generates the above mentioned runtime error. উদাহরণস্বরূপ, এই ভুল:

properties.ListItem["due Date"]

</শেষ>

আমার ব্লগ এর জন্য সাবস্ক্রাইব করুন.

Technorati বিভাগ:

এক বিষয়ে চিন্তা "সহজ ব্যাখ্যা: “মান প্রত্যাশিত পরিসীমা মধ্যে না পড়া না.”

  1. Sanjaykuma​r Patel

    I agree with paul but i also want to add something for this exception.
    Sometime the Field Name is different than the Field Internal Name in the list so trying to access the field using Field Name in the object model gives us the above exception. To resolve this problem always try to access the fields using their Internal Names.
    How can you find the internal Names of the Fields?
    1) Go To Sharepoint List. Go to New | New Item.
    2) New Item form will be displayed. Right click on the form and click on View Source. Search for the Field Internal Name in the opened HTML code. আপনি মাঠ নাম সহ মাঠ অভ্যন্তরীণ নাম পাবেন.

সাইফুল আলম চৌধুরী

আপনার ইমেইল ঠিকানা প্রচার করা হবে না. প্রয়োজনীয় ক্ষেত্রগুলি চিহ্নিত করা আছে *